-->
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: Hibernate Tools Domain Code Generation Issue
PostPosted: Mon Apr 23, 2007 3:45 pm 
Newbie

Joined: Thu Nov 10, 2005 2:21 pm
Posts: 6
The problem is simple, i have a property in my hbm.xml file that defines a float atribute:

Code:
<property name="number">
         <column name="NUMBER"></column>
         <type name="float"></type>
      </property>


When i generate the domain code with HBTools, it generates an atribute with the primitive type float

Code:
private float number;


However, i want it to generate an Float object atribute. If i set the type "Float" in hbm.xml instead of float

Code:
<property name="number">
         <column name="NUMBER"></column>
         <type name="Float"></type>
      </property>

it generates a private Float number, but hibernate doesnt recognizes a type "Float", only "float".
I think this is either a bug in HBTools or in Hibernate. Does someone have a suggestion on this?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 23, 2007 3:51 pm 
Expert
Expert

Joined: Tue Jul 11, 2006 10:21 am
Posts: 457
Location: Columbus, Ohio
<type name="java.lang.Float"/>


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 23, 2007 4:04 pm 
Newbie

Joined: Thu Nov 10, 2005 2:21 pm
Posts: 6
it was actually a bug in my brain,
i'm embarassed stupid me
thanks for the help


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.