Skip to content

Commit

Permalink
updated resourceIT classes
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarHawk committed Jan 15, 2025
1 parent 607d14d commit 2d7da77
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ import java.time.ZoneId;
<%_ if (anyFieldIsInstant) { _%>
import java.time.temporal.ChronoUnit;
<%_ } _%>
<%_ if (anyFieldIsLocalTime) { _%>
import java.time.LocalTime;
<%_ } _%>
<%_ if (!reactive && implementsEagerLoadApis) { _%>
import java.util.ArrayList;
<%_ } _%>
Expand Down Expand Up @@ -413,6 +416,13 @@ if (field.fieldTypeString || field.blobContentTypeText) {
<%_ if (needsSmallerValueName) { _%>
private static final ZonedDateTime <%= smallerValueName %> = ZonedDateTime.ofInstant(Instant.ofEpochMilli(-1L), ZoneOffset.UTC);
<%_ } _%>
<%_ } else if (field.fieldTypeLocalTime) { _%>

private static final LocalTime <%= defaultValueName %> = LocalTime.NOON;
private static final LocalTime <%= updatedValueName %> = LocalTime.MAX.withNano(0).;
<%_ if (needsSmallerValueName) { _%>
private static final LocalTime <%= smallerValueName %> = LocalTime.MIN;
<%_ } _%>
<%_ } else if (field.fieldTypeDuration) { _%>

private static final Duration <%= defaultValueName %> = Duration.ofHours(6);
Expand Down

0 comments on commit 2d7da77

Please sign in to comment.