-->
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: Does Hibernate support unsigned integer data types?
PostPosted: Thu Oct 09, 2008 11:33 am 
Beginner
Beginner

Joined: Mon Jul 28, 2008 4:36 pm
Posts: 24
Acknowledgements
I first want to thank everyone for all the great work and selfless contributions of the Hibernate team and all those who contribute to the project through patches or helping people in this forum or through other means. I also appreciate the generous support of JBoss and therefore RedHat in making this project possible.

My Failures
I did not find "unsigned" in the index of Hibernate In Action.

I did not find "unsigned" in the API docs for org.hibernate.mapping.Column

I did not find anything in the online docs or the faq.

Google said: Your search - unsigned site:www.hibernate.org - did not match any documents.

I found a couple of other posts in these forums asking the same question but not getting an answer:

http://forum.hibernate.org/viewtopic.php?p=2315074
http://forum.hibernate.org/viewtopic.php?p=2386439

The Problem
The last of these posts suggests that Hibernate does not support unsigned data types (e.g. unsigned byte). Can someone please confirm that for me?

_________________
_____________________
-Glen


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 09, 2008 12:40 pm 
Pro
Pro

Joined: Tue Jun 12, 2007 4:13 am
Posts: 209
Location: Berlin, Germany
I cannot remember that Java directly supports "unsigned"; all int types are signed.
So, if you need to have this, you will have to create a user type.

_________________
Carlo
-----------------------------------------------------------
please don't forget to rate if this post helped you


Top
 Profile  
 
 Post subject: Thanks!
PostPosted: Thu Oct 09, 2008 12:48 pm 
Beginner
Beginner

Joined: Mon Jul 28, 2008 4:36 pm
Posts: 24
carlolf wrote:
I cannot remember that Java directly supports "unsigned"; all int types are signed.


Doh! So it's Java that doesn't support unsigned types. That makes a lot of sense. Thank you!

_________________
_____________________
-Glen


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.