JPA: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
Line 24: Line 24:
* [https://stackoverflow.com/questions/24650186/ Choosing between <code>java.util.Date</code> or <code>java.sql.Date</code>]
* [https://stackoverflow.com/questions/24650186/ Choosing between <code>java.util.Date</code> or <code>java.sql.Date</code>]
* [https://programmer.group/integration-of-mybatis-and-jpa-persistence-in-springboot-learning-6.html Integration of MyBatis & JPA in Spring boot]
* [https://programmer.group/integration-of-mybatis-and-jpa-persistence-in-springboot-learning-6.html Integration of MyBatis & JPA in Spring boot]
* [https://thorben-janssen.com/custom-sequence-based-idgenerator/ Custom Sequence Based ID Generator]
* [https://stackoverflow.com/questions/30397988/ SQLite3 Doesn't Provide a Date Type]
* [https://stackoverflow.com/questions/30397988/ SQLite3 Doesn't Provide a Date Type]
* [https://stackoverflow.com/questions/52887289/ JPA use hbm.xml & annotations]
* [https://stackoverflow.com/questions/52887289/ JPA use hbm.xml & annotations]

Revision as of 09:10, 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