• Post Reply Bookmark Topic Watch Topic
  • New Topic

<mapping package=“x.x.x”/> not working fine in hibernate

Mohan Ramu
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have many classes in my Hibernate annotation project,

i want to add all those classes in hibernate.cfg.xml.

if i add set of classes like below , it's working fine,

<mapping class="com.infosys.ans.data.model.InbMst"/>
<mapping class="com.infosys.ans.data.model.InterfaceAccessTypMst"/>
<mapping class="com.infosys.ans.data.model.InterfaceOperTypMst"/>
<mapping class="com.infosys.ans.data.model.OutbMst"/>
<mapping class="com.infosys.ans.data.model.StsMst"/>
<mapping class="com.infosys.ans.data.model.InterfaceMst"/>

to reduce the code , i want to add only package name.

Thanks in advance
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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!