Skip to content
Holger Thurow edited this page Jan 16, 2022 · 20 revisions

q2o 3.17

  • Many more automatic type conversions
  • New convenience methods:
    * Q2Sql.numbersOrStringsFromSql(Class<T> requiredType, String sql, Object... args)
    * Q2Sql.numbersOrStringsFromSql(Connection connection, Class<T> requiredType, String sql, Object... args)
    * Q2Sql.numberOrStringFromSql(Class<T> requiredType, String sql, Object... args)
  • Bugfixes

q2o 3.16

Transaction management refined.

  • Suspend and resume transactions.
  • Now q2o.initializeTxNone(DataSource)complies with JDBC and uses server managed transactions.

See Transaction Management.

q2o 3.14

  • Automatic type conversion between java.util.Date or java.util.Calendar and DATE, TIME and TIMESTAMP fields via JPA's @Temporal annotation.

q2o 3.13

  • MySQL support.
  • Bugfix: refresh() did not update values having been set to NULL in the database.
  • Many new type conversions.

q2o 3.12

  • Spring transaction support.
  • New type conversions BigDecimal to Double and Double to Integer when driver delivered type and expected type differ.

q2o 3.11

  • Optionally retrieve OneToOne or ManyToOne relations with per query specifiable depth.

  • New convenience methods:

    * delete(List<T> objects)
    * deleteByWhereClause(Class<?> clazz, String whereClause, Object... args)
    * updateIncludeColumns(T target, String... includedColumns)
    * fromSelect(Class<T> clazz, String select, Object... args) // full select ... from ... where ... statement.
    * byId(T target) // Setting fields on already existing entities
  • Type conversion Long to Integer when setting entity values (e. g. identity fields) on read operations.
  • Support for joins as flattened type was broken.
  • Support for @Entity name element.
  • SansOrm 3.7 compatibility layer.

q2o 3.8

  • Annotate getters, not only fields.
  • Set access type explicitely with @Access annotation.
Clone this wiki locally