Skip to content

Releases: j256/ormlite-jdbc

6.1

20 Dec 19:53
Compare
Choose a tag to compare
  • ALL: Bumped the optional dependency to log4j2 to version 2.17.0. No direct references to log4j2 code in ormlite.

6.0

18 Dec 22:33
Compare
Choose a tag to compare
6.0
  • ALL: Added support for Java 7. Dropped support for Java 6.
  • ALL: Migrated to supporting AutoCloseable. Most close() methods now throw Exception not IOException.
  • CORE: Removed some Deprecated methods that had been with us for a while.
  • CORE: Added closeable-spliterator for better handing of JDK8+ streams. Thanks to zhemaituk.
  • CORE: Add Dao.queryForFirst() convenience method.
  • JDBC: ormlite-jdbc jar now includes the -core classes. No need to import ormlite-core jar anymore.
  • JDBC: Fixed exceptions in some JDBC drivers when working with chars. Thanks to Bo98.
  • JDBC: Fixed support for creating index IF NOT EXISTS in MariaDb. Thanks to BluemediaGER.
  • JDBC: Fixed boolean char type handling in Derby.

5.7

08 Nov 19:10
Compare
Choose a tag to compare
5.7
  • CORE: Fixed possible thread issue around field-name lookups. Thanks to dlew.
  • CORE: Fixed a number of flaky tests based on field order. Thanks CharlesZKQ, NanaOkada, hwang-pku, and chimo173.
  • CORE: Upgraded SimpleLogging code to fix annoying startup messages. Thanks to JayDi85.
  • CORE: Removed broken getCreateTableStatements(DatabaseType, ...). ConnectionSource needed. Thanks to blacatena.
  • CORE: Added WrappedConnectionSource and other support classes for tracing unclosed connections and statements.
  • CORE: Added better support for JDK8+ streams with lazy foreign collections. Thanks to zhemaituk.

5.6

08 Nov 19:10
Compare
Choose a tag to compare
5.6
  • CORE: Added support for @entity storing of Serializable types. Thanks to arn-cpu.
  • CORE: Fixed a bug with nonreentrant handling of DateFormat with the string date types. Thanks to Bob Lacatena.

5.5

23 May 20:08
Compare
Choose a tag to compare
5.5
  • CORE: Added support for java.util.Currency. Thanks for juur.

5.4

19 May 04:21
Compare
Choose a tag to compare
5.4
  • CORE: Added LoggerFactory.setLogFactory() for supporting other log implementations and added NullLog.
  • CORE: Migrated the internal logging code to SimpleLogging.
  • CORE: Updated H2 version which shook lose a couple of issues in tests and core support.
  • CORE: Added UPDATE and DELETE database-dependent support for TOP and LIMIT. Thanks to juur.
  • JDBC: Fixed NPE in JdbcSingleConnectionSource because of early initialization. Thanks to Nexxxt99.
  • JDBC: Fixed problem in Postgresql where mixed case sequence names aren't handled right. Thanks to Nick.
  • JDBC: Added database dependent login-timeout seconds setting to the JdbcConnectionSource.

5.3

19 May 04:24
Compare
Choose a tag to compare
5.3
  • CORE: More improvements to the TransactionManager connection and savepoint handling.
  • CORE: Added a getInternalConnection() method to DatabaseConnection to access underlying objects.
  • CORE: Added support for ORDER BY ... NULLS FIRST and LAST. May not be supported by all database types.
  • CORE: Added optimization to AND and OR queries to reduce the parens in the generated query. Thanks to devjta.
  • CORE: Removed some extraneous spaces from generated queries.
  • CORE: Added missing wiring for the TIME_STAMP_STRING data type for storing Timestamp type as a string.
  • CORE: Added support for OneToMany JPA annotation. Thanks to Bo98.
  • JDBC: Update the DB2 driver class. Thanks to mauro-palumbo.
  • JDBC: Added support for create table if not exists for HSQLDB versions 2.3.X and greater. Thanks to lukewhitt.
  • JDBC: Fixed a problem with H2's handling of boolean fields.
  • JDBC: Fixed the log4j logger classes broken in 5.2. Also moved them over to core. Thanks to MarcMil.

5.2

19 May 04:24
Compare
Choose a tag to compare
5.2
  • JDBC: Refactored the JDBC package to make it java9 compliant by moving all classes under jdbc subpackage.
  • CORE: Added support for @DatabaseField(readOnly) boolean for returning non-column fields.
  • CORE: Added @DatabaseField(fullColumnDefinition) for fully describing a column as opposed to columnDefinition.
  • CORE: Added BaseSchemaUtil to print out the schema statements necessary to create a table.
  • CORE: Added the ability for users to set a character set for byte array type. Thanks to noordawod.
  • CORE: Added a Logger.setGlobalLogLevel(...) method to set a global filter on all log messages.
  • CORE: Moved from RETURN_GENERATED_KEYS to named columns for generated ids to be more compatible. Thanks to Bo98.
  • CORE: Significant refactoring to make FieldType and TableInfo not depend on Dao or ConnectionSource.
  • CORE: Improved memory usage by unregistering DAOs associated to a connection source. Thanks to bosborn.
  • CORE: Fixed problem with null field assignment causing a NPE in the resulting message. Thanks to hrach.
  • CORE: Fixed problems with the transaction level thread-local not being handled right. Thanks to Bo98.
  • CORE: Fixed @DatabaseField(fullColumnDefinition) which was completely broken. Thanks to ethanmdavidson.
  • CORE: Fixed default width not being applied for BigInteger. Thanks to Bo98.
  • CORE: Fixed the default mysql driver and made driver loading more forgiving. Thanks to zanella.
  • CORE: Fixed a couple of incorrect SqlTypes in field converters. Thanks to Bo98.
  • CORE: Support schema name qualifiers for tables. Thanks to Fedor Bobin.
  • CORE: Fixed concurrency issues when using iterators. Thanks to MarcMil.

5.1

19 May 04:25
Compare
Choose a tag to compare
5.1
  • CORE: Added synchronized keyword to BaseDaoImpl.createOrUpdate() and createIfNotExists().
  • CORE: Added integer date support. Thanks to noordawod.
  • CORE: Added support for CloseableIterator.moveAbsolute(...). Thanks to renaudcerrato.
  • CORE: Fixed but with get table name not using TableInfo. Thanks to 0xabadea.
  • CORE: Fixed handling of field capitalization which was screwing up Turkish fields. Thanks to folkyatina.
  • CORE: Fixed handling of joined queries with orders and group by's. Thanks much to p91paul.
  • CORE: Fixed bad bug with committing of inner transactions inappropriately. Thanks much to maroux.
  • CORE: Normalized all of the up/down case usage to the DatabaseType so it can be overridden.
  • JDBC: Fixed problem with UUID native type not using the correct persister. Thanks to Bo98.

5.0

19 May 04:25
Compare
Choose a tag to compare
5.0
  • ALL: ORMLite has dropped support for Java 5. Java 6 is now required.
  • ALL: Added boolean argument to DatabaseConnection.compileStatement(...) to fix a cache bug.
  • ALL: Changed DatabaseResults.getObjectCache() to be getObjectCacheForRetrieve() and getObjectCacheForStore().
  • CORE: Added JOIN-ing between tables without a foreign-object relationship.
  • CORE: Added TimeStampStringType to support Android timestamps.
    CORE: Added the ability to override the DataPersister as well as the FieldConverter.
  • CORE: Added support for the @table entity from javax.persistence annotations. Thanks to wener. Bug #174.
  • CORE: Added used of java.io.Closeable to support CloseableIterator and other Java7 support. Thanks to livelazily.
  • CORE: Added Dao.create(Collection) method for bulk creation. Thanks to Farrukh Najmi for the good idea.
  • CORE: Added DataType.BOOLEAN_CHAR (to support '1' '0' or 't' 'f') and BOOLEAN_INTEGER. Thanks to stew.
  • CORE: Added support for QueryBuilder.countOf("DISTINCT(field)"). Thanks to spacetime.
  • CORE: Added support for Java 8 methods. Thanks to VincentFTS.
  • CORE: Added support for Joda DateTime to be able to be a version field. Thanks much to outofrange.
  • CORE: Added support for raw queries using the DatabaseResults in the mapper. Thanks much to nonameplum.
  • CORE: Added support for ENUM_TO_STRING type which persists Enum.toString() instead of name(). Thanks jiajia-li.
  • CORE: Added support for BigInteger to be an ID and version field by saving as string. Thanks noordawod.
  • CORE: Added support for BYTE_ARRAY and STRING_BYTE_ARRAY data type for ids and default values. Thanks noordawod.
  • CORE: Added support for table aliasing. Thanks much to p91paul.
  • CORE: Added table-name for many ConnectionSource methods to allow partitioning and other per-table operations.
  • CORE: Added better support for per-database type object custom persisters. Thanks to rzorzorzo.
  • CORE: Fixed (really) QueryBuilder.orderByRaw(...), orderBy(...) mutually exclusivity. Thanks to Diederik. Bug #161.
  • CORE: Fixed a bug when we select columns on an entity without an id field. Thanks to lder.
  • CORE: Fixed a bug with building queries using selectRaw(...). Bug #166.
  • CORE: Fixed the javax.persistence annotation processing and revamped it to use the annotations directly.
  • CORE: Fixed bug with UpdateBuilder methods returning wrong type. Thanks to Joseph Jones. Bug #180.
  • CORE: Fixed bug with the raw results that they are not obeying the AS SQL. Thanks to nonameplum. Bug #183.
  • CORE: Fixed bug with ISNULL and ISNOTNULL which weren't working with serializable. Thanks to andrew8er. Bug #185.
  • CORE: Fixed bug with dao.update() not setting dao on BaseDaoEnabled instances. Thanks to Carlos Fonseca. Bug #177.
  • CORE: Fixed bug where dao.deleteById(...) was not being properly notified. Thanks to Daniel Jette. Bug #190.
  • CORE: Fixed bug where useGetSet did not understand isXxx() for boolean fields. Thanks to HeDYn. Bug #187.
  • CORE: Fixed finding of get/set/is methods if not in English locale. Thanks to Christian Ruppert. Bug #191.
  • CORE: Fixed bug with Doa.createOrUpdate(...) and custom id types. Thanks much to lstrzelecki. Bug #193.
  • CORE: Fixed some problems with default-value parsing and handing with some complex types.
  • CORE: Fixed synchronization problems with single connection ConnectionSource and Dao.callBatchTasks(). Bug #195.
  • CORE: Fixed bad bug where max-auto-refresh value enabled auto-refresh when programmatically configured. Bug #196.
  • CORE: Fixed bug where unknown enum name was not working with anonymous enum types. Thanks to jahd2602. Bug #197.
  • CORE: Fixed a bug where the logger did not handle an array of primitives correctly.
  • CORE: Fixed problem with capitalization of entities in non-english locales. ENGLISH now the default.
  • CORE: Fixed problems with using @DatabaseField(foreignColumnName). Thanks to Knight704.
  • CORE: Fixed problem with storing partially formed objects in cache because of select arguments. Thanks to pimduin.
  • CORE: Fixed a bug in DatabaseFieldConfig constructor where it was ignoring DataType param. Thanks to magicgoose.
  • CORE: Removed deprecated methods: Dao.setAutoCommit(boolean), isAutoCommit()
  • CORE: Removed deprecated methods: QueryBuilder.clear(), limit(int), offset(int), use long versions of methods
  • CORE: Removed deprecated methods: ForeignCollectionField.maxEagerForeignCollectionLevel(), foreignColumnName()
  • CORE: Removed deprecated methods: DatabaseFieldConfig.setMaxEagerForeignCollectionLevel()
  • CORE: Removed deprecated methods: DatabaseFieldConfig.setForeignCollectionMaxEagerForeignCollectionLevel()
  • CORE: Removed deprecated methods: DatabaseFieldConfig.setForeignCollectionOrderColumn()
  • CORE: Removed deprecated methods: DatabaseFieldConfig.setForeignCollectionForeignColumnName()
  • JDBC: Added support for UUID database fields for Postgres, MSSQL. Use dataType = UUID_NATIVE. Thanks to tsharp.
  • JDBC: Added support for a JdbcConnectionSource that uses an existing database connection. Thanks to natinusala.
  • JDBC: Fixed (possibly) some problems with the Oracle type with better boolean support. Thanks to 51mon.
  • JDBC: Removed deprecated method: DataSourceConnectionSource.setUsesTransactions(boolean).
  • JDBC: Removed deprecated method: JdbcPooledConnectionSource.setUsesTransactions(boolean).