-->
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: hbm2java appears to ignore mutable=false
PostPosted: Fri Sep 30, 2005 5:43 pm 
Newbie

Joined: Sun Jun 20, 2004 1:15 am
Posts: 5
It appears that hbm2java ignores the "mutable=false" setting - it's generating public setters in my domain classes even though I've marked them as immutable.

I guess this could be seen as correct behaviour, if it was someone wanted to modify the in-memory object graph without persisting those changes, but that's not the case here and at the very least it'd be nice to have the option to choose whether public setters get generated for an immutable class.

Cheers,
Peter


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 30, 2005 5:47 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
<meta attribute="scope-set">private</meta>

<meta attribute="scope-get">private</meta>

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 30, 2005 7:56 pm 
Newbie

Joined: Sun Jun 20, 2004 1:15 am
Posts: 5
Thanks Max.

Cheers,
Peter


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.