-->
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.  [ 3 posts ] 
Author Message
 Post subject: How to map a directory and not concrete cfg.xml file.
PostPosted: Fri Nov 09, 2007 12:28 pm 
Newbie

Joined: Thu Nov 08, 2007 11:28 am
Posts: 5
Hi again,

I have a configuration xml file, from which my SessionFactory is configured.

I need something like:

<mapping resource="hibernate/mappings/Entity.hbm.xml"/>


but to map a directory not a concrete file.

With java code it is possible, but I want to know, if this is possible in xml configuration file, because I don't want to spread configuration all over the code, but to have it in one place. I need this, because my cfg.xml files are dinamicly created?

Thanks in advance!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 09, 2007 3:35 pm 
Regular
Regular

Joined: Tue Jan 03, 2006 9:20 am
Posts: 74
Sounds like a problem waiting for FPA, where you can configure it to look in specific packages for annotated classes.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 12, 2007 5:24 am 
Newbie

Joined: Thu Nov 08, 2007 11:28 am
Posts: 5
jwenting wrote:
Sounds like a problem waiting for FPA, where you can configure it to look in specific packages for annotated classes.


Hi, can you be more specific. What exactly is FPA?


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