-->
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.  [ 4 posts ] 
Author Message
 Post subject: Middlegen and Default
PostPosted: Wed Oct 01, 2003 9:18 am 
Newbie

Joined: Wed Oct 01, 2003 8:56 am
Posts: 6
Hi All

How do I set the cascade="all" as the default when using Middlegen to generate my hbm files.

Thanks
Jeff Singer


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 01, 2003 9:15 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Currently this is not an available option. It will be for r3 (Gavin has also asked for it :-) ). For the moment you can edit the velocity script to add this attribute to the generated hbm file.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 03, 2003 9:26 am 
Newbie

Joined: Wed Oct 01, 2003 8:56 am
Posts: 6
I found the velocity script in the jar file, if I extract it form the jar file.

Is there a way in my ant build.xml file to specify where the velocity.vm file can be found. Or do I have to recreate the jar with the file.

Thanks
Jeff


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 03, 2003 11:19 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
The easiest way is to rebuild the jar. You could change the code to use your script or (better way?) is to use the Ant script which can be used to set the file producer. See Middlegen site for documentation.


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