[
http://opensource.atlassian.com/projects/hibernate/browse/HBX-992?page=co...
]
Leonardo Pinho commented on HBX-992:
------------------------------------
Thanks for the ideas, but I need to change jpa configuration contained into
persistence.xml like the orm.xml location. So overrides the properties it is not enough
for me.
Also changing the persistent unit name will not work for some due to I have differents
directorys for each database, like:
.../META-INF/oracle/persistence.xml
.../META-INF/oracle/orm.xml
.../META-INF/mysql/persistence.xml
.../META-INF/mysql/orm.xml
I think it would be a great improvement support the configurationfile property as all
other configurations (jdbc, annotations, etc.) support it
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira