-->
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: Middlegen: Generation into different packages
PostPosted: Wed Jul 07, 2004 10:36 am 
Newbie

Joined: Mon Jun 14, 2004 5:23 am
Posts: 2
Hi,

I am using Middlegen to generate hbm files from an existing database schema.

The Hibernate Plugin for Middlegen allows to specify the 'destination' and 'package' attribute (in Ant task).
I am wondering, if there is a simple way to tell the Hibernate Plugin to assign database tables to different Java packages?
However, I would need to maintain associations between objects in different packages (i.e. just splitting up the task in Ant won't work for me).

For example, tables prefixed with DEF should be generated in package 'def', tables prefixed with NLS should be generated in package 'nls' etc, but some DEF_xxx tables will have FK associations to some NLS_xxx tables.

Thanks for your help!

Regards,
Josef


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 07, 2004 6:40 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Not currently. This is a middlegen core issue, eg, not related to the plugin. I will think about it. Maybe extending the table tag might do the job.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 10, 2004 5:47 am 
Newbie

Joined: Mon Jun 14, 2004 5:23 am
Posts: 2
Thanks for the information. Yes, I think the table tag is the right place.

Meanwhile, I have solved my problem using hbm file processing: 'replace' task in ant to update the packages in the generated files. Works for the moment.

Regards,
Josef


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.