forked from brettwooldridge/SansOrm
-
Notifications
You must be signed in to change notification settings - Fork 2
Change log
Holger Thurow edited this page Jan 16, 2022
·
20 revisions
- 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
Transaction management refined.
- Suspend and resume transactions.
- Now
q2o.initializeTxNone(DataSource)
complies with JDBC and uses server managed transactions.
- Automatic type conversion between java.util.Date or java.util.Calendar and DATE, TIME and TIMESTAMP fields via JPA's @Temporal annotation.
- MySQL support.
- Bugfix: refresh() did not update values having been set to NULL in the database.
- Many new type conversions.
- Spring transaction support.
- New type conversions BigDecimal to Double and Double to Integer when driver delivered type and expected type differ.
-
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.
- Annotate getters, not only fields.
- Set access type explicitely with @Access annotation.