-->
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.  [ 5 posts ] 
Author Message
 Post subject: is there any troubles with mapping types in Oracle 10?
PostPosted: Tue Mar 20, 2007 9:43 pm 
Newbie

Joined: Tue Mar 20, 2007 9:37 pm
Posts: 1
Hello People:

I need some help with mapping hibernate types in Oracle 10. I have problems with Long and Blob types.

Thanks for your help.
Regards


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 21, 2007 2:37 am 
Expert
Expert

Joined: Tue Jan 30, 2007 12:45 am
Posts: 283
Location: India
Hi nattaly,

You could map Long with long in HBM .I didn't find any problem in 10 g for long.For Blob i am not sure.Send us Exception what you are getting might help us.

_________________
Dharmendra Pandey


Top
 Profile  
 
 Post subject: I have a problem mapping Hiberate types with Oracle Types !!
PostPosted: Wed Mar 21, 2007 4:32 pm 
Newbie

Joined: Sat Mar 03, 2007 3:14 am
Posts: 16
I'dont now how to map a simple Float java field into Oracle Number or BinaryFloat.
Exmaple:
<c;lass>..
.. . ..
<property name="floatnumber" type="float">
<column name="FLOATNUMBER" />
</property>
. .. ..
</class>
the following error throw while SessionFactory is create:

Wrong column type: FLOATNUMBER, expected: float

Please maybe it was a stupid question, but now i dont now the answer ..
Thanks ..
Bye


Top
 Profile  
 
 Post subject: How to map oracle 10g Number to a double type?
PostPosted: Wed Mar 21, 2007 10:01 pm 
Newbie

Joined: Tue May 04, 2004 3:32 pm
Posts: 16
Location: Iowa
I have a similar problem. My oracle datatype is Number (4,1) but I want to map it to double type in java.

<property name="OneDoubleProperty" type="double">
<column name="OneDoubleProperty" sql-type="Number(4,1)" />
</property>

It gave me an error.
I also tried <column name="OneDoubleProperty" sql-type="Number" precision="4" scale="1" />
It does not work either.

Help please.

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 21, 2007 11:34 pm 
Expert
Expert

Joined: Tue Jan 30, 2007 12:45 am
Posts: 283
Location: India
Hi ryang5,

Try

<property name="OneDoubleProperty" type="double" column="OneDoubleProperty" />

that might work,not sure.

_________________
Dharmendra Pandey


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 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.