-->
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: Mapping unsigned value (UInt32, UInt64)
PostPosted: Wed May 28, 2008 5:33 am 
Newbie

Joined: Wed May 28, 2008 5:19 am
Posts: 2
Hi,

just started using hbn as my OR Mapper but I'm just a little bit confused right now. Why is it not possible to use any unsigned values for MySQL or MSSQL 2005 Dialects? Every time I use a property, wich is a unsigned value, hbn throws an exception:

Error creating context '/hbntest': Dialect does not support DbType.UInt64

or

Error creating context '/hbntest': Dialect does not support DbType.UInt64

netherless if I'm using NHibernate.Dialect.MsSql2005Dialect or NHibernate.Dialect.MySQLDialect. But both dbs support unsigned values. What am I missing?


Top
 Profile  
 
 Post subject: Push
PostPosted: Mon Jun 02, 2008 3:59 am 
Newbie

Joined: Wed May 28, 2008 5:19 am
Posts: 2
Nobody knows?


Top
 Profile  
 
 Post subject: Re: Push
PostPosted: Thu Oct 09, 2008 12:55 pm 
Beginner
Beginner

Joined: Mon Jul 28, 2008 4:36 pm
Posts: 24
I just asked again. It's Java that does not support unsigned types.

"All integral types represent signed numbers, there is no 'unsigned' keyword as there is in C and C++... When doing integer arithmetic, you simply must ensure that the type you are using has a sufficient range for the purposes you intend."
Source: Java in a Nutshell, 3rd Edition, by David Flanagan, Pub. O'Reilly, pp. 24-25

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

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