-->
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: CodeGenerator and configurable hashCode() and equals()
PostPosted: Mon Dec 20, 2004 10:14 pm 
Beginner
Beginner

Joined: Fri Mar 12, 2004 8:40 pm
Posts: 30
Location: SF Bay Area
Is it possible to modify a hbm.xml file
and custom configure the hashCode() and
equals() methods generated by
org.apache.commons.lang.builder.HashCodeBuilder
and EqualsBuilder are configurable?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 21, 2004 4:47 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
not at the moment.

"Workarounds" are:

Try to use the velocity based renderer and define it your self.

use "generated-class" to allow you to subclass the generated class and provide the actual equal/hashcode.

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