Apache OpenJPA 2.0 第二次迭代完成

来源:互联网 发布:怎样用web运行js文件 编辑:程序博客网 时间:2024/06/06 03:08

 The second iteration of OpenJPA 2.0 is complete! Iteration 2 content is based on the 10/31/2008 draft of the JPA 2.0 specification. Here is a summary of the new features provided in this iteration:
    OpenJPA 2.0的第二次迭代完成了。本次迭代的内容是基于 2008年10月31日的 JPA 2.0 的规范。下面是本次迭代的新特性汇总:

    * Support for the JPA 2.0 level 2 cache interface. Operations on the OpenJPA data cache are now available from the entity manager factory through a standard JPA interface.
    支持JPA 2.0 二级缓冲接口。现在可以通过标准的JPA接口,在实体管理器工厂里操作OpenJPA的数据缓冲。

    * Support for use of order column through a JPA annotations or orm mapping file elements. Existing OpenJPA support for order columns has been extended to support the JPA standard OrderColumn definition. This iteration supports a configurable base value attribue. Support for the table and contiguous attributes will be provided in future iterations.
    支持通过JPA的注释或者映射文件来指定列的排序。已经存在的OpenJPA支持的类排序已经扩展为支持JPA的标准的OrderColumn定义。 本次迭代支持可配置的基础属性值。以后的版本将支持表格和邻接属性。

    * Enhanced map support. The use of Map collections has been significantly enhanced. This iteration includes use of the new MapKeyClass, MapKeyColumn, MapKeyJoinColumn, and MapKeyJoinColumns annotations and corresponding orm mapping file elements.
    增强了map的支持。Map集合的使用已经被显著增强。本次迭代包含了新的MaKeyClass,MapKeyColumn, MapKeyJoinColumn, 和 MapKeyJoinColumns 注释以及对应的orm映射的文件元素。

    * Support for JPQL INDEX() function within a query projection or predicate. Allows the index of ordered columns to be projected or used as part of a query predicate. Projection is currently not supported for element collection. This support will be added in a future iteration.
    支持在一个查询projection 或者谓语部分使用 JPQL INDEX()函数。允许排序列索引的projection 或者作为一个查询projection的一部分。 projection 目前不支持集合元素。这个将在以后的迭代中添加。

    * Support for new javax.persistence standard properties. Standard properties such as javax.persistence.jdbc.driver can now be specified as configuration properties.
    支持新增加的 javax.persistence标准的属性。例如 javax.persistence.jdbc.driver可以作为可配置的属性来指定。

    * Support for entity TYPE() expression. Allows projection of or query criteria based on entity type. OpenJPA does not currently allow selection of an abstract entity type.
    支持实体的TYPE()表达式。允许查询的projection 或者查询的条件基于实体的类型。OpenJPA当前不允许选择一个抽象的是实体类型。

These new features are available in the latest nightly snapshot build. Be aware that the JPA 2.0 spec is not final so these features are subject to change.
    这些新特性存在于最新的每日构建里。注意JPA 2.0规范还没有定稿,所以这些特性可能会改变。

Many thanks to those who contributed to this iteration! If you'd like to be a contributor to the OpenJPA project, please post your interest on the dev mailing list or contact one of the active committers.

-Jeremy

原创粉丝点击