Skip to content

Commit

Permalink
Added documentation for LocalTime type
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarHawk committed Jan 16, 2025
1 parent 1a6ac49 commit 68e259a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/core-tasks/creating-an-entity.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions docs/jdl/entities-fields.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down

0 comments on commit 68e259a

Please sign in to comment.