-->
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.  [ 1 post ] 
Author Message
 Post subject: How to map database LONG-> native long with non managed?
PostPosted: Thu Jul 01, 2010 4:50 pm 
Regular
Regular

Joined: Wed Jan 21, 2009 8:41 pm
Posts: 54
so, if I'm using a SQL Query why do I end up with a big decimal in java for a database type that's defined NUMBER

my setter takes a native long and I currently map the database columns to java using AliasToBeanResultTransformer where
I define aliases using "as" where my physical columns are mapped to the property names of my bean class but
if I try to add an addScalar to fix the type of one of my aliases it assumes or takes precedence over all the existing
aliases "as" that are defined in the SQL so I'm forced to use addScalar for _all_ columns which is something I don't
want to do.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.