We had different persistence.xml files in our classpath and wanted to namespace them. For deployment it's not really needed as JPA bases itself on the persistenceUnit name, but it's still handy in the IDE.
For now we 'll look into not namespacing those files.

I've foundan issue for it on hibernate:
  http://opensource.atlassian.com/projects/hibernate/browse/HBX-992
Vote for it ;)

With kind regards,
Geoffrey De Smet

Johann Reyes schreef:
Hello Geoffrey

That's more a limitation of hibernate than the plugin, because with
jpaconfiguration, it automatically scans the classpath for
META-INF/persistence.xml

Why you have many persistence.xml files, is for different server
deployments?

Regards

Johann Reyes

-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Geoffrey De Smet
Sent: Friday, August 22, 2008 2:37 AM
To: user@mojo.codehaus.org
Subject: [mojo-user] JPA with hibernate3 plugin: custom name for
persistence.xml: META-INF/myPersistence.xml

Hi,

Is it possible to use a custom name for the persistence.xml with the hibernate3 plugin? We've got several persistence.xml files, so we need to namespace them, as myPersistence.xml etc.



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to