-->
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: Latest tools code: Java type generation changed?
PostPosted: Wed Nov 30, 2005 3:07 pm 
Beginner
Beginner

Joined: Tue Nov 15, 2005 6:56 pm
Posts: 39
Using latest compilation from CVS of hibernate-tools3.0.1-beta1


I've been reading and experiencing the different ways the newest tools generates java types such as Boolean vs boolean, and Integer vs integer.

I just want to confirm my findings before I go ahead and change all my exisiting mapping files.

First, Is it true that if my old tools code produced "Boolean" or "Integer" (the higher level Java type) when my mapping documents had the type equal to "boolean" and "integer", that will no longer work? With the latest code I'm seeing that it produces the primitive types "boolean" and "integer".

Second, to fix this, am I going to have to change all my mapping documents to explicitly say "Boolean" and "Integer" to produce the same code as before?

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 30, 2005 4:02 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
as far as i know we actually have the same rules as before - but we used nullability to influence it but that is also wrong in other cases.....because nullability in the db level does not mean it cannot be null in the oo model. but yes, right now you will have to change the mappings to list what you actually want.

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