• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to map .hbm.xml file in persistence.xml

 
Saathvik Reddy
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am working on a project which uses both Entity classes with annotations and .hbm.xml mapping files.
I list all the entity classes with annotations in the persistence.xml file but how do i include .hbm.xml files in the persistence unit.

Thanks,
Srikanth.
 
Edvins Reisons
Ranch Hand
Posts: 364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The documentation says that you can get them all (annotated entity classes and XML mapped classes) included into the persistence unit automatically.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic