-->
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.  [ 1 post ] 
Author Message
 Post subject: Load mappings as resources (best practice)
PostPosted: Tue Apr 30, 2013 4:55 am 
Newbie

Joined: Thu Feb 05, 2009 5:22 am
Posts: 2
The Hibernate manual mentions this as a best practice (http://docs.jboss.org/hibernate/orm/4.1/manual/en-US/html/ch26.html):
Quote:
Load mappings as resources:

Deploy the mappings along with the classes they map.


I'm not sure that I understand the point of this advice. I usually load the mappings with a configuration element like this one:
Code:
<mapping resource="org/hibernate/tutorial/domain/Event.hbm.xml"/>


I guess this is what they are referring to when they say "load mapping as resources". But then, what are the other alternatives that are considered "bad practices"?

Thanks in advance for your responses.


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

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.