Hmm So you want to use 1 persistence.xml for development and other for deployment??
If that's right, then how about using profiles. I do that for development, I have my persistence.xml in an extra resource directory activated by default and my IDE (Idea) recognizes that directory to be included in my dev environment. And I have another resource directory that gets used when I do a deployment package. Regards Johann Reyes -----Original Message----- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Geoffrey De Smet Sent: Monday, August 25, 2008 4:28 AM To: user@mojo.codehaus.org Subject: [mojo-user] Re: JPA with hibernate3 plugin: custom name for persistence.xml: META-INF/myPersistence.xml 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 --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email