-->
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: hbm2java problem for not-null="false" properties
PostPosted: Mon Feb 23, 2004 6:48 am 
Newbie

Joined: Mon Feb 23, 2004 6:43 am
Posts: 8
Location: Irvine, California, USA
Hi!

I have the following question - why hbm2java is generating a property as char, when it has not-null="false"? I prefer to use hibernate types only, but now I have no choice, but to use java.lang.Character. It is a generic problem, not only for character datatype.

Or probably I'm missing something?

_________________
Nikolay Kolev
Webgineers


Top
 Profile  
 
 Post subject: Re: hbm2java problem for not-null="false" properti
PostPosted: Mon Feb 23, 2004 5:13 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
webgineers wrote:
Hi!

I have the following question - why hbm2java is generating a property as char, when it has not-null="false"? I prefer to use hibernate types only, but now I have no choice, but to use java.lang.Character. It is a generic problem, not only for character datatype.

Or probably I'm missing something?


Eh ? What is the problem of using java.lang.Character when you really mean java.lang.Character ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 23, 2004 10:08 pm 
Newbie

Joined: Mon Feb 23, 2004 6:43 am
Posts: 8
Location: Irvine, California, USA
There's no big problem, but I would prefer the unboxed "char", instead of "java.lang.Character". I think the most intuitive behavior would be similar to how IDs work - if you set unsaved-value="0" and the type is "long", for example, the result type would be "long", not "java.lang.Long".

_________________
Nikolay Kolev
Webgineers


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.