• 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic