Community
Participate
Working Groups
JPA 2.0 added additional EntityManager APIs. New API was added which allow 'lock modes' to be applied to methods find and refresh. API was added to allow access to an objects current lock status. API was added to allow removal of an Entity from the persistence context ( clear(Object entity) ). Additional miscelanious API was added. See http://wiki.eclipse.org/index.php?title=EclipseLink/Development/JPA_2.0/entitymanager_updates for details
Created attachment 123145 [details] EM API Update The patch has the implementation and testing of EM API new features.
Created attachment 123653 [details] Enhancement to EM API Except for Criteria related features, rest of the new features of EM API has been added and tested .
Created attachment 124064 [details] with changes from the feedback given by Guy
Not all of the reported properties are supported at the EM level. Only: JOIN_EXISTING_TRANSACTION PERSISTENCE_CONTEXT_REFERENCE_MODE PERSISTENCE_CONTEXT_CLOSE_ON_COMMIT PERSISTENCE_CONTEXT_PERSIST_ON_COMMIT PERSISTENCE_CONTEXT_FLUSH_MODE ORACLE_PROXY_TYPE EXCLUSIVE_CONNECTION_MODE EXCLUSIVE_CONNECTION_IS_LAZY CONNECTION_POLICY VALIDATE_EXISTENCE FLUSH_CLEAR_CACHE Quite a few revisions have occurred with substantial changes to the format of files since the patched revisions. Care should be taken when resolving conflicts and checking in the patch. Otherwise looks ready for check-in.
Ignore my comment on the supported properties list. The properties as specified within the patch is correct.
Checked in all of JPA 2.0 EntityManager API updates (except those required by Criteria Query) on behalf of Darani. The changes are at http://fisheye2.atlassian.com/changelog/eclipselink/?cs=3362 Leaving this issue open for the Criteria Query work.
I updated the wiki with the latest methods to be implemented in EM API. I am working on implementing those methods.
Created attachment 129564 [details] patch to update 'find()','refresh()', and 'setProperty()' methods Implementation of 'PESSIMISTIC' lockmodes, createQuery(CriteriaQuery), getQueryBuilder(), and getMetaModel() are yet to be implemented.
Created attachment 129631 [details] patch to implement new 'find()',refresh()', and 'setProperty()' methods
CascadeType.Detach is yet to be completed
Checked in a patch on behalf of Darani. http://fisheye2.atlassian.com/changelog/eclipselink/?cs=3779 Please note that the implementation of detatch() needs to updated to take into account CascadeType.DETACH
This bug was intended to cover the new Query APIs like getSupportedHints() and getHints(). The Wiki pages should be the guides on what should be implemented.
*** Bug 270196 has been marked as a duplicate of this bug. ***
Additionally an open issue with em.detach() is that triggered indirection on a detached instance for mappings marked as CascadeType.DETACH must return detached instances as well. Currently those instances would be managed as would be expected for non CascadeType.DETACH mappings.
Changing priority to P@ since JPA 2.0 features are required for the 2.0 release
Initial development completed
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink