JPA: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
Line 29: Line 29:
* [https://stackoverflow.com/questions/9319850/ JPA & SQLite3 - Wrong Date]
* [https://stackoverflow.com/questions/9319850/ JPA & SQLite3 - Wrong Date]
* [https://stackoverflow.com/questions/47259048/ How to generate Custom Id]
* [https://stackoverflow.com/questions/47259048/ How to generate Custom Id]
* [https://stackoverflow.com/questions/27690709/ JPA Primary Key Prefix]
* [https://stackoverflow.com/questions/1404210/ Java Date vs Calendar]
* [https://stackoverflow.com/questions/1404210/ Java Date vs Calendar]


|}
|}

Revision as of 18:30, 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