[hibernate-issues] [Hibernate-JIRA] Commented: (HBX-992) JPA configuration should support configurationfile as a way to do overrides the persistence.xml location
Max Rydahl Andersen (JIRA)
noreply at atlassian.com
Sun Oct 7 14:18:38 EDT 2007
[ http://opensource.atlassian.com/projects/hibernate/browse/HBX-992?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_28376 ]
Max Rydahl Andersen commented on HBX-992:
-----------------------------------------
Actually they do it in a different way:
"Internally, this FactoryBean parses the persistence.xml file itself and creates a corresponding PersistenceUnitInfo object (with further configuration merged in, such as JDBC DataSources and the Spring LoadTimeWeaver), to be passed to the chosen JPA PersistenceProvider. This corresponds to a local JPA container with full support for the standard JPA container contrac"
I will look into that; it's a hack but it's a better hack than classloaders ;)
> JPA configuration should support configurationfile as a way to do overrides the persistence.xml location
> --------------------------------------------------------------------------------------------------------
>
> Key: HBX-992
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-992
> Project: Hibernate Tools
> Issue Type: Bug
> Affects Versions: 3.2beta9, 3.2beta10
> Reporter: Leonardo Pinho
> Priority: Blocker
>
> JPA configuration should support configurationfile as a way to do overrides the persistence.xml location, like:
> <target name="hbm2ddl">
> <hibernatetool destdir="${src-hbmtools.dir}">
> <jpaconfiguration configurationfile="META-INF/${database}/persistence.xml"/>
> <classpath location="${build.classes.dir}"/>
> <hbm2ddl export="false" outputfilename="${module.name}.ddl" format="true" haltonerror="true"/>
> </hibernatetool>
> </target>
> When I try it, I got "<jpaconfiguration> currently only support autodiscovery from META-INF/persistence.xml. Thus setting the configurationfile attribute is not allowed"
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list