released version 4.43

37 views
Skip to first unread message

Gray Watson

unread,
Feb 6, 2013, 12:28:31 AM2/6/13
to
It's been quite a while since I've done a release unfortunately. Number of bug fixes and feature requests here.

* CORE: Added QueryBuilder.countOf() and queryRaw() methods as shortcuts to their DAO equivalents.
* CORE: Added Where.queryForFirst(), queryRaw(), queryRawFirst(), countOf() methods as shortcut to QueryBuilder.
* CORE: Added the ColumnArg feature to compare two columns using QueryBuilder in simple queries and joins.
* CORE: Fixed a problem with GROUP BY, ORDER BY, and HAVING order. Bug #134.
* CORE: Fixed possible problem with field-type comparison in certain situations. Thanks to shikajiro. Bug #136.
* CORE: Added ? arguments to QueryBuilder.orderByRaw(...) method. Thanks a bunch to Nathan Jones. Feature #138.
* CORE: Added support for multiple JOIN statements. Thanks to Ramps. Feature #28.
* CORE: Added ability to select log-type using "com.j256.ormlite.logger.type" system property. See LoggerFactory.
* CORE: Creating an empty foreign collection now mirrors the collection type. "Fixes" bug #124.
* CORE: Made the RuntimeExceptionDao implement ClosableIterarble. Feature #34.
* CORE: Added Dao.assignEmptyForeignCollection() method to replace the getEmptyForeignCollection(). Feature #31.
* ANDROID: Added protections around missing classes when building class config. Thanks to Bart. Bug #133.
* ANDROID: Fixed unclosed Cursor in AndroidDatabaseConnection.isTableExists(). Thanks to Andreas. Bug #137.
* ANDROID: Added handling of inner classes that have annotations. Thanks to Ваcилий Казьмин. Feature #35.
* JDBC: Improved the log class detection and added support for Slf4j nad Log4j2. Feature #27.

You can get the release via ORMLite:

http://ormlite.com/releases/

or via Maven once the sync finishes:

http://repo1.maven.org/maven2/com/j256/ormlite/

Or from sourceforge.net. Feedback always welcome.
gray

Gray Watson

unread,
Feb 6, 2013, 1:44:44 AM2/6/13
to
Couple comments about the release.

> * CORE: Added the ColumnArg feature to compare two columns using QueryBuilder in simple queries and joins.

Big win here. Allows you to combine two columns in the same table or with JOINs multiple tables. See:

http://ormlite.com/docs/column-arg

> * CORE: Added support for multiple JOIN statements. Thanks to Ramps. Feature #28.

Allows to do multiple JOIN statements across more than one table.

> * CORE: Added Dao.assignEmptyForeignCollection() method to replace the getEmptyForeignCollection(). Feature #31.

In the process of replacing dao.getEmptyForeignCollection() with assignEmptyForeignCollection(). Haven't quite made getEmptyForeignCollection() deprecated. The purpose is assign the parent object so when you say account.orders().add(order1); the account field on the order1 will be set with the account if it is null on order1. Feature.

> * ANDROID: Fixed unclosed Cursor in AndroidDatabaseConnection.isTableExists(). Thanks to Andreas. Bug #137.

Bug fix here.

> * JDBC: Improved the log class detection and added support for Slf4j nad Log4j2. Feature #27.

Better support for more loggers.

As always comments welcome.
gray

Reply all
Reply to author
Forward
0 new messages