-->
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: Output Pojo, DAO and HBM to different folders/packages
PostPosted: Thu Sep 04, 2008 12:43 pm 
Newbie

Joined: Thu Sep 04, 2008 11:08 am
Posts: 4
Hibernate Tools version: 3.2.4.Alpha1

Hi,

I am generating successfully my HBM, POJO and DAO files using Hibernate Tools eclipse plugin.

What I would like to change is the destination of those files. As of now, everything goes to a package named "cls.common.hibernate". I would like to output the files to the packages "cls.common.hibernate.dao", "cls.common.hibernate.pojo" and "cls.common.hibernate.hbm" in order to improve the organization of the code.

If I change the output path of each exporter in the launch configuration, I end up with separation of the files but additional directory structure is created in those directories? For instance : "cls.common.hibernate.hbm.cls.common.hibernate".


Would there be a way to avoid the generation of this extra path corresponding to the name of the package ?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 09, 2008 9:56 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
currently the best way is to update the templates.

_________________
Max
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.