You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Kevin Sutter (JIRA)" <ji...@apache.org> on 2010/09/15 15:16:32 UTC

[jira] Commented: (OPENJPA-1795) Allow persistence descriptors other than META-INF/persistence.xml for OpenJPA tools

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

Kevin Sutter commented on OPENJPA-1795:
---------------------------------------

Tim,
The tools all provide a common set of configuration parameters, including the -p parameter which allows you to specify a persistence.xml file regardless of it's location.  The default META-INF will still be searched first, but you could specify "-p OSGI-INF/jpa.xml".  More information can be found here:

http://openjpa.apache.org/builds/2.0.0/apache-openjpa-2.0.0/docs/manual/manual.html#ref_guide_conf_devtools

If you are looking for something else, then please clarify.  Thanks.

Kevin

> Allow persistence descriptors other than META-INF/persistence.xml for OpenJPA tools
> -----------------------------------------------------------------------------------
>
>                 Key: OPENJPA-1795
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1795
>             Project: OpenJPA
>          Issue Type: Improvement
>          Components: tooling
>    Affects Versions: 2.1.0
>         Environment: All
>            Reporter: Timothy Ward
>            Priority: Minor
>
> OSGi persistence bundles allow JPA persistence descriptors to be in locations other than META-INF, and has no restriction on the name of the xml file. It would therefore be much easier to use the OpenJPA tools (for example the enhancer, mapping tool, etc) if they allowed a configuration parameter specifying the name and location of the persistence descriptor (for example OSGI-INF/jpa.xml).
> The current default would not need to be changed, but a configuration parameter would allow for the tools to be used much more easily in OSGi application development. 

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