-->
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.  [ 5 posts ] 
Author Message
 Post subject: hibernate 3.1 rc 3, tools beta1 full constructor problem ?
PostPosted: Sat Nov 26, 2005 7:57 am 
Newbie

Joined: Tue Nov 02, 2004 5:37 pm
Posts: 17
Greetings,

i have been using hibernate tools 3.1 alpha 4 with hibernate 3.1 rc 3 and could not get it to create full constructors for my mappings i.e. for :

<class name="gr.bluecore.taxi.db.Category" table="category">
<id column="category_id" name="id" type="long">
<generator class="identity"/>
</id>
<property column="description" length="255" name="description" type="string"/>
<property column="descriptionen" length="255" name="descriptionen" type="string"/>
<property column="showscat" length="1" name="showscat" type="yes_no"/>
<property column="descriptionge" length="255" name="descriptionge" type="string"/>
<property column="descriptionfr" length="255" name="descriptionfr" type="string"/>
<set name="point">
<key column="category_id" />
<one-to-many class="gr.bluecore.taxi.db.Point" />
</set>
</class>

it creates an empty one and one with id. I recently installed tools beta 1 but i get the same export. Another thing is that it changed the objects primitives types. i.e. previous type="long" exported Long and now with beta 1 it exports long...

I would really appreciate a reply !! because i am really stuck !!!

Thank you very much

Leon


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 26, 2005 3:06 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
full constructor generation are in cvs

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 27, 2005 5:56 am 
Newbie

Joined: Tue Nov 02, 2004 5:37 pm
Posts: 17
Thanks for the reply.

I will download and try to compile the cvs tools version. What about the change from objects to primitive types (ids are now long instead of Long) Is this going to be adopted from now on, because most of the classes previously generated use objects and a few lines of code will have to changed (insert,query e.t.c.)

Best Regards,

Leon


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 27, 2005 7:25 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
use java.lang.Long if you want objects, use primitive long if you want primitive long....simple rule ;)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 27, 2005 2:38 pm 
Newbie

Joined: Tue Nov 02, 2004 5:37 pm
Posts: 17
So simple ...

Thank you for the reply...

Best Regards
Leon


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