-->
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: Specifying different packages for POJOs and mapping files
PostPosted: Mon Apr 24, 2006 7:08 am 
Newbie

Joined: Tue Apr 18, 2006 6:11 am
Posts: 11
Hi,

It is possible to put the generated pojos and hbms in different directories.

Can i also put them there in different packages?

For an example:

\project-base\mapping\com\project\hibernate\mapping

\project-base\pojos\com\project\hibernate\entity\base

And not:

\project-base\pojos\com\project\hibernate\entity\base

\project-base\mapping\com\project\hibernate\entity\base

The mapping and pojo dir is the base dir; The packages should be than generated by hibernate tools and inserted correctly into the pojos as normal
package name.

Is this possible? How?

Thx for help,

cheers,

Gerald


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 24, 2006 9:21 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
patch HibernateMappingExporter ;)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 28, 2006 10:30 am 
Beginner
Beginner

Joined: Wed Oct 19, 2005 4:11 am
Posts: 48
I'm just getting back to Hibernate after a bit of a break. I was wondering if it's still necessary to list each of the mapping files in the config file (I'm not using annotations obviously) or is there a new way of getting Hibernate to "auto discover" all the meta-files in the classpath?

_________________
Chris Colman
http://stepaheadsoftware.com/products/j ... avelin.htm
Javelin: Lightweight, non intrusive, POJO, Java modeling & coding with automatic Hibernate and JDO meta data generation.
Don't forget to credit ;)


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.