java.time
package: Instant, LocalDate, LocalDateTime, LocalTime, OffsetDateTime,
OffsetTime and ZonedDateTime.
toString()
method to
Insert.Builder
Insert
operation.
setObject()
.
Passing a String to a column of type BIGINT transformed the String into a BigInteger and passed that BigInteger to the prepared statement. This resulted
to a strange, misleading error message from H2. Given that JDBC doesn't have official support for BigInteger, the strategy has been reversed: passing a BigInteger transforms the BigInteger to a String and this String is passed to the prepared statement. See the javadoc of Binders.integerBinder() for details.
useMetadata(false)
for every insert with databases like Oracle and MySQL which don't
support parameter metadata. In previous versions, a SQLException was thrown and, if metadata usage was turned off, the default binder
was used. Now the active BinderConfiguration can catch the exception and return the binder it wants. The default BinderConfiguration
does that and returns the default binder.java.util.Date
or a
java.util.Calendar
, the bound value is a java.sql.Timestamp
. If it's an enum, the name of the enum is bound.with()
factory methods to DataSourceDestination
and DriverManagerDestination
. Thanks to Alexis Hassler.
Insert.Builder.withGeneratedValue()
and for the classes in the package
com/ninja_squad/dbsetup/generator
. Thanks to Gaetan Zoritchak for this suggested evolution and his feedbacksInitial release