-->
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: Is there any way to ignore all associations?
PostPosted: Mon Sep 20, 2004 6:05 am 
Newbie

Joined: Mon Aug 23, 2004 9:23 am
Posts: 12
Hibernate version: 2.0

Hello,
I would like to know if there is a simple way to avoid that middlegen (and as a result, hibernate) doesn't do anything with associations, I mean, I want Middlegen to ignore any kind of association so the associations section in the *.hbm.xml is empty. Maybe some property...

Thanks and kind regards,
Jose Luis


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 20, 2004 7:39 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
At the moment this is expected to be done via the GUI, eg, removing the directional attributes from the relationships. This will result in the properties being generated instead of the relationship. Alternatively, you could also look at the preferences file and edit it appropiately. Lastly you could edit the velcity script and remove the relationship code from it (will make it quite a small script at the end of the exercise).


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.