[
https://issues.apache.org/jira/browse/OPENJPA-1432?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Fay Wang updated OPENJPA-1432:
------------------------------
Attachment: OPENJPA-1432.patch
> 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
>
> Attachments: 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.