|
26 | 26 | import java.time.LocalDate;
|
27 | 27 | import java.time.LocalDateTime;
|
28 | 28 | import java.time.LocalTime;
|
| 29 | +import java.time.OffsetDateTime; |
29 | 30 | import java.time.ZoneOffset;
|
30 | 31 | import java.time.ZonedDateTime;
|
31 | 32 | import java.util.Date;
|
@@ -69,12 +70,14 @@ public void testTargetTypesForPropertyType() {
|
69 | 70 | SoftAssertions softly = new SoftAssertions();
|
70 | 71 |
|
71 | 72 | checkTargetType(softly, entity, "someEnum", String.class);
|
72 |
| - checkTargetType(softly, entity, "localDateTime", Timestamp.class); |
| 73 | + checkTargetType(softly, entity, "localDateTime", LocalDateTime.class); |
73 | 74 | checkTargetType(softly, entity, "localDate", Timestamp.class);
|
74 | 75 | checkTargetType(softly, entity, "localTime", Timestamp.class);
|
| 76 | + checkTargetType(softly, entity, "zonedDateTime", String.class); |
| 77 | + checkTargetType(softly, entity, "offsetDateTime", OffsetDateTime.class); |
75 | 78 | checkTargetType(softly, entity, "instant", Timestamp.class);
|
76 | 79 | checkTargetType(softly, entity, "date", Date.class);
|
77 |
| - checkTargetType(softly, entity, "zonedDateTime", String.class); |
| 80 | + checkTargetType(softly, entity, "timestamp", Timestamp.class); |
78 | 81 | checkTargetType(softly, entity, "uuid", UUID.class);
|
79 | 82 |
|
80 | 83 | softly.assertAll();
|
@@ -165,9 +168,11 @@ private static class DummyEntity {
|
165 | 168 | private final LocalDateTime localDateTime;
|
166 | 169 | private final LocalDate localDate;
|
167 | 170 | private final LocalTime localTime;
|
| 171 | + private final ZonedDateTime zonedDateTime; |
| 172 | + private final OffsetDateTime offsetDateTime; |
168 | 173 | private final Instant instant;
|
169 | 174 | private final Date date;
|
170 |
| - private final ZonedDateTime zonedDateTime; |
| 175 | + private final Timestamp timestamp; |
171 | 176 | private final AggregateReference<DummyEntity, Long> reference;
|
172 | 177 | private final UUID uuid;
|
173 | 178 |
|
|
0 commit comments