-->
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.  [ 2 posts ] 
Author Message
 Post subject: trying to create tables with precision and scale
PostPosted: Tue May 13, 2008 5:44 am 
Newbie

Joined: Tue May 13, 2008 5:23 am
Posts: 2
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:
this is from the mainfest file in the jar, hope it is correct: 3.2.2.ga
Mapping documents:
(as we are linking to random customer tables we have to programatically generate the mappings
Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:
oracle 10i
The generated SQL (show_sql=true):

create table TEST_USER.wendy_gibb_double_pk_table3 (
key double precision not null,
data_stuff date not null,
primary key (key)
)
Debug level Hibernate log excerpt:


Problems with Session and transaction handling?
no
Read this: http://hibernate.org/42.html

the metadata created from debug is
length=10, precision=10, scale = 2, name=key, nullable = false, sqltype=null,sqltype_code= null, type index = 0, value.typename = double

what i am trying to do is create a column of type number(10,2) what settings do i need
sorry I am so new but please help me.


Top
 Profile  
 
 Post subject: well sorted it
PostPosted: Tue May 13, 2008 10:07 am 
Newbie

Joined: Tue May 13, 2008 5:23 am
Posts: 2
if you set the datatype in SimpleValue as a double it seems to just ignore the preciasion and length you add, but if you make it a big_decimal type
then it uses them


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