-->
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: Scripts generated by SchemaExportTask don't seem correct
PostPosted: Tue Dec 02, 2003 6:43 pm 
Beginner
Beginner

Joined: Mon Dec 01, 2003 8:48 pm
Posts: 47
Location: Texas, United States
I am using Oracle 8.1.x and I have configured the OracleDialect. I am attempting to export the workshop tables(User, Item, Bid) to my database. I noticed that the scripts produced are not correct.

See the following for an example:
This is produced by the SchemaExportTask
create table Item (
itemId NUMBER(19,0) not null,
name VARCHAR2(255),
description VARCHAR2(255),
initialPrice NUMBER(19, 255), <-- illegal
reservePrice NUMBER(19, 255), <-- illegal
startDatetime DATE,
endDatetime DATE,
lastUpdated DATE,
seller RAW(255),
successfulBid NUMBER(19,0),
primary key (itemId)
);

NUMBER can only be between -84 and 127. 255 is not valid. This is produced by the java.math.BigDecimal data type. Is this a bug, or am I missing something?

Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 02, 2003 9:49 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
set length="5", or whatever.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 03, 2003 12:01 pm 
Beginner
Beginner

Joined: Mon Dec 01, 2003 8:48 pm
Posts: 47
Location: Texas, United States
Ok, cool. Thanks for the reply!


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.