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
Reporter: Fay Wang
Assignee: Fay Wang
Fix For: 2.0.0
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.