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

Pinaki Poddar commented on OPENJPA-849:
---------------------------------------

org.apache.openjpa.lib.conf.Configuration exists in a generic layer of OpenJPA 
and has no knowledge/awareness of facade-level notions such as 
EntityManagerFactory, EntityManager or Query.
Adding such awareness violates the core architectural principles of the system. 


--- src/main/java/org/apache/openjpa/lib/conf/Configuration.java        
(revision 734193)
+++ src/main/java/org/apache/openjpa/lib/conf/Configuration.java        
(working copy)
+    
+    /**
+     * @return the Set of properties supported for the EntityManager.
+     * This method is primarily for the use of the EntityManager
+     * getSupportedProperties() method.
+     * 
+     * @since 2.0.0
+     */
+    public Set<String> getEMSupportedProperties();


--- src/main/java/org/apache/openjpa/lib/conf/ConfigurationImpl.java    
(revision 734193)
+++ src/main/java/org/apache/openjpa/lib/conf/ConfigurationImpl.java    
(working copy)
+    // Sets of properties that are supported for the getSupportedProperties()
+    // methods of the EntityManager or EntityManagerFactory or for the
+    // getSupportedHints method() of Query.
+    Set<String> propertiesSupportedOnEMF;
+    Set<String> propertiesSupportedOnEM;
+    Set<String> propertiesSupportedOnQuery;


> Add metadata-type getter methods to EntityManager
> -------------------------------------------------
>
>                 Key: OPENJPA-849
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-849
>             Project: OpenJPA
>          Issue Type: Sub-task
>    Affects Versions: 2.0.0
>            Reporter: Dianne Richards
>            Assignee: Dianne Richards
>         Attachments: patch.txt
>
>
> This task is for supporting the new 2.0 EntityManager methods getProperties() 
> and getSupportedProperties()

-- 
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