-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 
Author Message
 Post subject: hibernate mapping file location
PostPosted: Tue Sep 06, 2005 1:11 am 
Newbie

Joined: Mon Jul 25, 2005 7:38 am
Posts: 6
Location: Hyderabad
Is there any specific location for the hibernate mapping file. I want to place the mapping file in the respective packages.In case should there be any configuration change required ?

_________________
HiberNATE


Top
 Profile  
 
 Post subject: Location of Hibernate mapping files
PostPosted: Tue Sep 06, 2005 1:37 am 
Newbie

Joined: Wed Aug 24, 2005 12:07 pm
Posts: 17
Hi,
You can place your hibernate mapping files anywhere.You just have to mention the path in your hibernate.cfg.xml file.Hope it is very much clear to you.
Regards,
Chirag.


Top
 Profile  
 
 Post subject: Re: Location of Hibernate mapping files
PostPosted: Tue Sep 06, 2005 1:43 am 
Newbie

Joined: Mon Jul 25, 2005 7:38 am
Posts: 6
Location: Hyderabad
chiku_78 wrote:
Hi,
You can place your hibernate mapping files anywhere.You just have to mention the path in your hibernate.cfg.xml file.Hope it is very much clear to you.
Regards,
Chirag.



Thanks for the quick reply. I just want to confirm whether it should be in the following format :
<mapping resource="com/test/model/Customer.hbm.xml"/>

or is it different ?

_________________
HiberNATE


Top
 Profile  
 
 Post subject: U R Welcome
PostPosted: Tue Sep 06, 2005 1:51 am 
Newbie

Joined: Wed Aug 24, 2005 12:07 pm
Posts: 17
If u have any further queries feel free to contact.
Chirag


Top
 Profile  
 
 Post subject: Re: U R Welcome
PostPosted: Tue Sep 06, 2005 5:07 am 
Newbie

Joined: Mon Jul 25, 2005 7:38 am
Posts: 6
Location: Hyderabad
chiku_78 wrote:
If u have any further queries feel free to contact.
Chirag


Does this say that the syntax I posted is correct ?

_________________
HiberNATE


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 06, 2005 5:11 am 
Newbie

Joined: Tue Sep 06, 2005 2:58 am
Posts: 7
Hi there

The paths specified in the hibernate.cfg.xml must be ralative to the hibernate.cfg.xml file. So if you xml file is at the same level as your com directory, then yes, it's correct.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.