-->
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: why hbm2java include the version tag in the constructor
PostPosted: Fri Aug 05, 2005 9:43 am 
Newbie

Joined: Wed Jun 01, 2005 11:39 am
Posts: 8
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 2.1.8
Hibernate-extensions: 2.1.3

Mapping documents:
<version name="version" column="VERSION" type="java.lang.Long"
unsaved-value="null">
</version>



Hi,

why the generated hbm2java constructors include the version attribute?
version is a attribute which is set only by hibernate internally like the
id, or? and the id isnĀ“t include in the constructors. furthermore the version attribute is no business value and shoud
therefore not be in the business classes constructor. is there any possibility
to leave the version attribute out of the generated constructors? or
are there reasons why hbm2java takes them to the constructor?

thanks,
thommy


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 06, 2005 3:03 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
not really, but its a property like any other.

construcor generation is being redone in h3 tools.

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