-->
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: How does hbm2java translate types?
PostPosted: Tue Sep 21, 2004 11:41 am 
Newbie

Joined: Mon Aug 30, 2004 2:48 pm
Posts: 11
Hibernate version:2.1

Mapping documents:
<property name="docType" column="doc_type" type="character" />


When you map a property using the built-in Hibernate types, how does hbm2java decide whether to make the type primitive (char) or the wrapper object (Character). In the instance above, that property should be nullable -- by default, but it always generates a field with the type char, which can't be null. Am I missing something?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 21, 2004 6:55 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Look at the implementation/API of the Hibernate types (eg, UserTypes) then you will see they supply the Java type mapping. hbm2java is querying that method.


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.