-->
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.  [ 2 posts ] 
Author Message
 Post subject: Persist a class without the mapping resource in the cfg file
PostPosted: Fri Sep 08, 2006 11:25 am 
Beginner
Beginner

Joined: Tue Sep 05, 2006 2:36 pm
Posts: 24
Is there a way to avoid the mapping documents in the hibernate.cfg.xml file?
Example:
Code:
<mapping resource="com/ranlogic/prueba/Vehicle.hbm.xml" />

I mean: I want to persist a lot of classes, but without specifing each one in that file.
Is it possible?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 08, 2006 2:18 pm 
Senior
Senior

Joined: Sun Jun 04, 2006 1:58 am
Posts: 136
you can you that programatically as described here

http://www.hibernate.org/hib_docs/reference/en/html/session-configuration.html

_________________
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.