[jboss-jira] [JBoss JIRA] Commented: (JBJPA-27) support for detecting version from persistence.xml files and passing it to the JPA 2 provider

Scott Marlow (JIRA) jira-events at lists.jboss.org
Thu Apr 29 09:54:06 EDT 2010


    [ https://jira.jboss.org/jira/browse/JBJPA-27?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12528077#action_12528077 ] 

Scott Marlow commented on JBJPA-27:
-----------------------------------

a delicate solution could be to change PersistenceMetaData.getPersistenceUnits() to modify each PersistenceUnit to reference the PersistenceMetaData.  If only we could depend on this being set before a call to PersistenceUnitMetaData.getPersistenceMetaData() is made.

> support for detecting version from persistence.xml files and passing it to the JPA 2 provider
> ---------------------------------------------------------------------------------------------
>
>                 Key: JBJPA-27
>                 URL: https://jira.jboss.org/jira/browse/JBJPA-27
>             Project: JBoss JPA
>          Issue Type: Task
>            Reporter: Scott Marlow
>            Assignee: Scott Marlow
>             Fix For: 1.0.1
>
>         Attachments: jbas-7460.patch, JBJPA-27.patch
>
>
> Add PersistenceMetaData parameter to constructor for class PersistenceUnitInfoImpl and use schema version in PersistenceMetaData.
> After this change, the PersistenceUnitInfoImpl.getPersistenceXMLSchemaVersion() will default to returning "1.0" rather than null (in case this class ever seeps into a JPA-1 implementation).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list