• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to add Mapping in hibernate.propeties?

 
prasad kulkarni
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We can add mapping in the hibernate.cfg.xml as

<!-- mapping files -->
<mapping resource="org/hibernate/auction/Item.hbm.xml"/>

However I am using hibernate.properties and not the cfg.xml. If I want to add the same mapping in the properties file , how can I do that?
(I do not want to do that using new Configuration().addResource("Item.hbm.xml") method ).

Help please !
 
Edvins Reisons
Ranch Hand
Posts: 364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See here what you can configure with Hibernate properties. Mapping files are not in the list.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic