【IT168 资讯】DataNucleus Access Platform 是一个兼容各种标准的 Java 数据持久化框架,完全兼容 JDO1, JDO2, JDO2.1, JDO2.2, JDO2.3, 和 JPA1 等 Java 标准。提供一个基于 REST 的API。通过它可以访问所有常见的数据库服务器,还包括 LDAP, NeoDatis, JSON, Excel/ODF spreadsheets, XML, BigTable, 和 HADOOP 数据库等.
该版本改进内容众多,主要如下:
Add support for custom class-level and field-level annotations.
Add support for "native" value generator when field of different type to expected (String <-> long)
Fix to in-memory query evaluation of String.substring to cater for IndexOutOfBounds
Support for typing of variables in JDO Typesafe queries
Fix to not call "fetch" when persisting a new object under some situations
Support for persistence of Calendar as a String (where required by the datastore)
Provision of query extensions static final Strings for easier refactoring
Support for query extensions that are boolean to be specified as that type rather than String
Enhancer : allow user plugin bundles
JPA : Support for dynamic generation of "persistence-unit"
JPA : fix for use of Enum without jdbcType
RDBMS : fix to possible lockup due to internal map usage for schema
RDBMS : Enable BINARY/VARBINARY support for MySQL
RDBMS : Support for max/min of temporal expressions in queries
RDBMS : fix to case of subquery that was not precompilable so mark the outer query as not precompilable too
RDBMS : fix to Oracle when using DISTINCT to not select BLOB/CLOB columns
RDBMS : Migrate to BoneCP 0.7+
RDBMS : Support detection of timeout exceptions in JDOQL
RDBMS : Fix to some situations of "complete-table" inheritance strategy usage
ODF : Support persist of byte[] fields
ODF : Support for "increment"/"table" value generator
ODF : fix to retrieval of map field
Excel : fix to ordering of inserts so we don't overwrite rows/columns
Excel : fix to retrieve of map field
Excel : Support for "increment"/"table" value generator
Excel : Support persist of byte[] fields
HBase : Cache datastore-query compilation
HBase : Fix to "hbase" dependency maven groupId
HBase : Support for persistence of non-serialised map fields
HBase : Support use of embedded field references in queries in-datastore
HBase : Support for simple parameter values in queries in-datastore
MongoDB : fix to "increment" value generator
MongoDB : fix to exceptions thrown on MongoDB problems to match JDO/JPA specs
MongoDB : Fix to use of specified datastore name
MongoDB : Support for schema validation with SchemaTool
MongoDB : Support for persistence of Date/Calendar as Date (rather than String)
MongoDB : Support for persistence of maps with Enums keys/values
MongoDB : Fix to persist of array field
MongoDB : Cache datastore-query compilation
IDEA : inclusion of plugin for IDEA, previously developed as separate project (downloadable from Intellij also)