Hibernate: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
Line 24: Line 24:
* [https://vladmihalcea.com/why-you-should-never-use-the-table-identifier-generator-with-jpa-and-hibernate/ Never use the TABLE identifier generator]
* [https://vladmihalcea.com/why-you-should-never-use-the-table-identifier-generator-with-jpa-and-hibernate/ Never use the TABLE identifier generator]
* [https://thorben-janssen.com/custom-sequence-based-idgenerator/ Custom Sequence Based ID Generator]
* [https://thorben-janssen.com/custom-sequence-based-idgenerator/ Custom Sequence Based ID Generator]
* [https://docs.liquibase.com/change-types/community/create-sequence.html#:~:text=Database%20support Create Sequence Supported Database]
* [https://docs.liquibase.com/change-types/community/add-auto-increment.html#:~:text=Database%20support Auto Increment Supported Database]
* [https://docs.liquibase.com/change-types/community/add-auto-increment.html#:~:text=Database%20support Auto Increment Supported Database]
* [https://stackoverflow.com/questions/27690709/ JPA Primary Key Prefix]
* [https://stackoverflow.com/questions/27690709/ JPA Primary Key Prefix]

Revision as of 19:44, 14 October 2020

Replacements

java.util.Date     => java.time.Instant
java.sql.Timestamp => java.time.Instant
java.sql.Date      => java.time.LocalDate
java.sql.Time      => java.time.LocalTime

The Instant class represents a moment on the timeline in UTC with a resolution of nanoseconds (up to nine (9) digits of a decimal fraction).All three java.time.Local… classes are all lacking any concept of time zone or offset-from-UTC.

References