• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

How to add Mapping in hibernate.propeties?

 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 !
 
Ranch Hand
Posts: 364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
See here what you can configure with Hibernate properties. Mapping files are not in the list.
 
reply
    Bookmark Topic Watch Topic
  • New Topic