-->
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 Number(2) returns byte
PostPosted: Fri Jul 15, 2005 5:02 pm 
Beginner
Beginner

Joined: Tue Jun 21, 2005 3:15 pm
Posts: 29
Hey all, I am working with Oracle 9i and I have a Number field with prescision 2 (Number(2)) and when I reverse engineer. I get Type byte by default. I edited my reveng to:
<sql-type jdbc-type="NUMERIC" hibernate-type="long" />
and it still returned "byte" so I tried:
<sql-type jdbc-type="NUMERIC" precision="2" hibernate-type="long" />
and still returns "byte"

Can anyone help with this? Maybe another set of eyes will help.



Thanks,
B


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 15, 2005 5:07 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
should work. have you tried to check with scale ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 15, 2005 5:18 pm 
Beginner
Beginner

Joined: Tue Jun 21, 2005 3:15 pm
Posts: 29
Yes, I tried scale="0" and still returns byte. I am using Hiberate3 and tools tools3.0.0-alpha4a
JDBC: Classes12.zip
oracle 9i
jdk 1.4.2

Can someone try this and see if anything different happens? I get this for all my tables that have Number(2) --> byte
Thanks,
B


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.