JPA: Difference between revisions
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
==References== | ==References== | ||
* [https://stackoverflow.com/questions/ | {| | ||
| valign="top" | | |||
* [https://stackoverflow.com/questions/27952472 Serialize/deserialize <code>java.time</code> with Jackson] | |||
* [https://stackoverflow.com/questions/25486583 Usage OrderBy with findAll in Spring Data] | * [https://stackoverflow.com/questions/25486583 Usage OrderBy with findAll in Spring Data] | ||
* [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] | ||
* [[Convention for Database Tables]] | * [[Convention for Database Tables]] | ||
* [https://en.wikibooks.org/wiki/Java_Persistence/Inheritance Java Persistence/Inheritance] | * [https://en.wikibooks.org/wiki/Java_Persistence/Inheritance Java Persistence/Inheritance] | ||
* [[EclipseLink]] | * [[EclipseLink]] | ||
* [[Hibernate]] | * [[Hibernate]] | ||
Line 19: | Line 20: | ||
* [[MyBatis]] | * [[MyBatis]] | ||
* [[Locale]] | * [[Locale]] | ||
| valign="top" | | |||
* [https://stackoverflow.com/questions/24650186 Choosing between <code>java.util.Date</code> or <code>java.sql.Date</code>] | |||
* [https://stackoverflow.com/questions/47259048 How to generate Custom Id] | |||
|} |
Revision as of 16:41, 27 September 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.