[ https://issues.apache.org/jira/browse/OPENJPA-1432?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Donald Woods resolved OPENJPA-1432.
-----------------------------------
Resolution: Fixed
open another JIRA if more work is required
> openjpa.Compatibility property for JPA 2.0 behavior may be overwritten if this property
is an argument to createEntityManagerFactory
> ------------------------------------------------------------------------------------------------------------------------------------
>
> Key: OPENJPA-1432
> URL: https://issues.apache.org/jira/browse/OPENJPA-1432
> Project: OpenJPA
> Issue Type: Bug
> Components: kernel
> Affects Versions: 2.0.0-M3
> Reporter: Fay Wang
> Assignee: Fay Wang
> Fix For: 2.0.0-beta
>
> Attachments: OPENJPA-1432-1.patch, OPENJPA-1432.patch
>
>
> The JPA 2.0 version is detected from persistence.xml and then set to the Compatibility
object in ConfigurationImpl. However, this Compatibility object will be nullified if the following
property is passed as an argument to createEntityManagerFactory:
> Map<Object,Object> map = new HashMap<Object,Object>();
> map.put("openjpa.Compatibility", "StrictIdentityValues=true");
> EntityManagerFactory emf = Persistence.createEntityManagerFactory("test", map);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
|