JPA: Difference between revisions
Jump to navigation
Jump to search
Line 11: | Line 11: | ||
|- | |- | ||
! Database !! Auto Increment !! Sequence !! Usable | ! Database !! Auto Increment !! Sequence !! Usable | ||
|- | |||
! DB2/LUW | |||
| <code>✓</code> || <code>✓</code> || <code>✓</code> | |||
|- | |||
! DB2/z | |||
| <code>✓</code> || <code>✓</code> || <code>✓</code> | |||
|- | |||
! PostgreSQL | |||
| <code>✓</code> || <code>✓</code> || <code>✓</code> | |||
|- | |- | ||
! Derby | ! Derby | ||
Line 17: | Line 26: | ||
! Firebird | ! Firebird | ||
| <code>✕</code> || <code>✓</code> || <code>✓</code> | | <code>✕</code> || <code>✓</code> || <code>✓</code> | ||
|- | |||
! H2 | |||
| <code>✓</code> || <code>✓</code> || <code>✓</code> | |||
|- | |||
! HyperSQL | |||
| <code>✓</code> || <code>✓</code> || <code>✓</code> | |||
|- | |- | ||
! INGRES | ! INGRES | ||
| <code>✓</code> || <code>✕</code> || <code>✕</code> | | <code>✓</code> || <code>✕</code> || <code>✕</code> | ||
|- | |||
! Informix | |||
| <code>✓</code> || <code>✓</code> || <code>✓</code> | |||
|- | |- | ||
! MariaDB | ! MariaDB | ||
Line 38: | Line 56: | ||
! Sybase | ! Sybase | ||
| <code>✓</code> || <code>✕</code> || <code>✕</code> | | <code>✓</code> || <code>✕</code> || <code>✕</code> | ||
|- | |||
! Sybase Anywhere | |||
| <code>✓</code> || <code>✓</code> || <code>✓</code> | |||
|} | |} | ||
Revision as of 22:43, 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.
Challenges
Database | Auto Increment | Sequence | Usable |
---|---|---|---|
DB2/LUW | ✓ |
✓ |
✓
|
DB2/z | ✓ |
✓ |
✓
|
PostgreSQL | ✓ |
✓ |
✓
|
Derby | ✕ |
✓ |
✓
|
Firebird | ✕ |
✓ |
✓
|
H2 | ✓ |
✓ |
✓
|
HyperSQL | ✓ |
✓ |
✓
|
INGRES | ✓ |
✕ |
✕
|
Informix | ✓ |
✓ |
✓
|
MariaDB | ✓ |
✕ |
✕
|
MySQL | ✓ |
✕ |
✕
|
Oracle | ✕ |
✓ |
✓
|
Sql Server | ✕ |
✓ |
✓
|
SQLite | ✓ |
✕ |
✕
|
Sybase | ✓ |
✕ |
✕
|
Sybase Anywhere | ✓ |
✓ |
✓
|