diff --git a/docs/core-tasks/creating-an-entity.mdx b/docs/core-tasks/creating-an-entity.mdx index 81f905e9c..306c15f8b 100644 --- a/docs/core-tasks/creating-an-entity.mdx +++ b/docs/core-tasks/creating-an-entity.mdx @@ -105,6 +105,7 @@ JHipster supports many field types. This support depends on your database backen * `Instant`: A [java.time.Instant](https://docs.oracle.com/javase/8/docs/api/java/time/Instant.html) object, used to represent a timestamp, an instantaneous point on the time-line. * `ZonedDateTime`: A [java.time.ZonedDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/ZonedDateTime.html) object, used to represent a local date-time in a given timezone (typically a calendar appointment). Note that time zones are neither supported by the REST nor by the persistence layers so you should most probably use `Instant` instead. * `Duration`: A [java.time.Duration](https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html) object, used to represent an amount of time. +* `LocalTime`: A [java.time.LocalTime](https://docs.oracle.com/javase/8/docs/api/java/time/LocalTime.html) object, used to represent a local time without timezone. Can be used to define business hours for example. * `UUID`: A [java.util.UUID](https://docs.oracle.com/javase/8/docs/api/java/util/UUID.html). * `Boolean`: A Java Boolean. * `Enumeration`: A Java Enumeration object. When this type is selected, the sub-generator will ask you what values you want in your enumeration, and it will create a specific `enum` class to store them. diff --git a/docs/jdl/entities-fields.mdx b/docs/jdl/entities-fields.mdx index e875e0542..8b68cbd76 100644 --- a/docs/jdl/entities-fields.mdx +++ b/docs/jdl/entities-fields.mdx @@ -168,6 +168,7 @@ Each field type has its own validation list. Here are the types supported in the |ZonedDateTime |required, unique | |Instant |required, unique | |Duration |required, unique | +|LocalTime |required, unique | |UUID |required, unique | |Blob |required, minbytes, maxbytes, unique | |AnyBlob |required, minbytes, maxbytes, unique |