OpenJPA 2.0.0 Beta
The Apache OpenJPA community is proud to release a Beta distribution of OpenJPA 2.0.0. This distribution is based on the final JSR 317 Java Persistence API, Version 2.0 specification and passes the JPA 2.0 TCK. Included are many enhancements, fixes, and new functionality; giving developers access to all the new features of JPA 2.0, including:
- Access Types - expanded to allow specification on a per-persistent type basis or on individual attributes.
- Embeddables - expanded to include collections of embeddables, nested embeddables, and embeddables containing relationships to other entities.
- Enhanced Map Collections - expanded to support ElementCollection and new annotations for MapKeyColumn, MapKeyClass and MapKeyJoinColumn
- Derived Identities - enables the ID of an entity to be derived from another entity, which provides for parent-to-dependent relationships
- Query API - methods to get typed query parameters and results, supported and in-effect hints and lock mode getter/setter
- Locking - official support for Pessimistic locking (included in prior OpenJPA releases) along with LockModeType properties and hint
- JPQL Updates -
- Embeddables support for path expressions to nested Embeddables and Embeddables with relationships
- Enhanced Map Collection support for ElementCollection and new query expressions for KEY, ENTRY, VALUE
- Support for CASE and TYPE expressions along with IN expressions for Collection parameters
- Support for native date/time/timestamp literals
- Support for INDEX expressions on an OrderColumn
- L2 Cache -
- Provides cache operations such as entity eviction and cache mode behaviors to use, bypass or refresh items
- Per-entity annotation to specify whether an entity should be cached
- Bean Validation - supports using a JSR 303 implementation for entity validation for persist and remove operations
- Metamodel API -
- Provides API to dynamically retrieve metamodel information for a persistence unit
- Currently limited to persistent state and relationships
- Used with Criteria API to generate and execute type safe queries
- Supports dynamic or static generation of the metamodel
- Criteria API -
- Provides programmatic construction of queries using an object based query graph
- Operates on Metamodel objects to provide compile-time type safety enforcement
- EntityManagerFactory API - updated for new L2 Cache, Properties, Criteria and Metamodel APIs
- EntityManager API - updated for new Query and Query Result APIs, Hints, Properties, LockModeType, and Detach
- And many more...
This beta distribution is based upon the contributions provided in development iterations 1 through 14, as defined in the JPA 2.0 Roadmap, which contains a complete list of included features, including what is on deck for future iterations.
Use the links below to download the artifacts or source for Apache OpenJPA 2.0.0 Beta. It is always good practice to verify the integrity of the distribution files.
OpenJPA 2.0.0 Beta Source Code
Geronimo JPA 2.0 Spec API v1.0 source code
Geronimo Bean Validation 1.0 Spec API v1.0 source code
- OpenJPA 2.0.0 Beta JAR
- OpenJPA 2.0.0 Beta JAR w/ depends
- Geronimo JPA 2.0 Spec API artifacts
- Geronimo Bean Validation 1.0 Spec API artifacts
SVN Source Branches
Apache OpenJPA was developed by The Apache Software Foundation and is licensed under Apache License 2.0.
Copyright 2006,2010 The Apache Software Foundation.
Apache, the Apache feather logo and OpenJPA are trademarks of Apache Software Foundation.
Apache OpenJPA is bundled with the schemas from the JPA specifications, by Sun Microsystems and licensed under the CDDL 1.0. The source code is available at: https://glassfish.dev.java.net/source/browse/glassfish/