[ 
https://issues.apache.org/jira/browse/OPENJPA-972?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Donald Woods updated OPENJPA-972:
---------------------------------

    Attachment: OPENJPA-972.patch

Patch that adds 2 files to test the following JPA 2.0 Persistence Unit 
Properties scenarios:
   1) persistence.xml provided properties 
      1a) No PU properties provided is same as no timeout (JDBC defined)
      1b) PU provided properties translated into config
   2) Map of properties provided to createEMF()
      2a) EMF props can be set when no PU props provided
      2b) EMF props override PU set properties in config
   3) QueryHints override default values from PU or EMF (2b)
   4) Query.setHint() 
      4a) can override default values from PU or EMF (2a)
      4b) can override QueryHints (3)

Also modifies PersistenceProductDerivation to add a comment to explain where 3 
elements (including properties) are handled in the code.


> 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
>
>         Attachments: OPENJPA-972.patch
>
>
> 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