Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate Ejb3Configuration + persistence.xml

 
Pedro Lobato Sena
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

I'm configuring my EntityManager programatically, using:


I saw in hibernate documentation that is possible to configure it with orm.xml file. But all my mappings are in persistence.xml file.

I would like to know if is possible to configure my entityManager, using Ejb3Configuration and my persistence.xml file.

I would not like to mantain to almost-identical files in my system, specially a file that change so much, like persistence.xml

Thanks for your time,

Pedro Sena
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!