-->
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: HibernateMappingGlobalSettings from Ant
PostPosted: Tue Sep 05, 2006 5:13 pm 
Newbie

Joined: Tue Sep 05, 2006 4:45 pm
Posts: 3
Using 3.2beta7, I would like to tweak a few values in reverse-engineered hbm.xml files. I've traced through templates and java code and it seems that HibernateMappingGlobalSettings has the values I want to change. The test cases show how to do this from java code by calling setter methods, but I want to use a straightforward ant task, if possible.

Is there an approved method for doing this with configuration, or should I fall back to an ant task in java or jython and call setter methods myself?

Thanks much for the great tools. We're saving enormous pain by using them. :-)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 05, 2006 5:27 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
you can change values from inside the tempaltes by accessing $hmgs.

what values is it exactly ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 05, 2006 6:30 pm 
Newbie

Joined: Tue Sep 05, 2006 4:45 pm
Posts: 3
max wrote:
you can change values from inside the tempaltes by accessing $hmgs.

what values is it exactly ?


I want to change "defaultCascade" in a way that preserves the current template logic. It seems like the templates are designed to be parameterized from the outside, so I didn't want to put the value directly in the template.

Are you implying that there's no way to manipulate the contents of $hmgs from ant? If that's the case, I'll just go ahead and munge the templates directly.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 05, 2006 6:32 pm 
Hibernate Team
Hibernate Team

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

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