[ 
https://issues.apache.org/jira/browse/OPENJPA-972?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12682784#action_12682784
 ] 

Donald Woods commented on OPENJPA-972:
--------------------------------------

Based on chatting with Jeremy, Pinaki and Albert today, I thought I would 
document the following code behavior as part of this JIRA -

The code currently does not pass the properties supplied on the PU in 
persistence.xml or via a properties Map to createEMF down as hints, but only as 
config settings in FetchPlan.  This is the expected and agreed upon behavior 
for OpenJPA 2.0.

The spec says that PU or Map provided properties to the EMF will be used as 
defaults and that Query.setHint() can be used to override, but there is no 
requirement for getHints() to return these default values.


> Support standard provider properties in PersistenceProvider class
> -----------------------------------------------------------------
>
>                 Key: OPENJPA-972
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-972
>             Project: OpenJPA
>          Issue Type: Sub-task
>          Components: kernel
>    Affects Versions: 2.0.0
>            Reporter: Donald Woods
>            Assignee: Donald Woods
>             Fix For: 2.0.0
>
>
> Implement support for PU properties and hints passed in persistence.xml 
> and/or the Map parameter of createEntityManagerFactory().
> Section 8.1.3.1 of the JPA 2.0 Public Draft #1.
> This work item is to add junit coverage on Query for the following new PU 
> properties:
>    javax.persistence.lock.timeout
>    javax.persistence.query.timeout
> Supplying them in a Map to createEMF should override any values supplied in 
> persistence.xml.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to