-->
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.  [ 4 posts ] 
Author Message
 Post subject: hibernate inserts strange data in oracle
PostPosted: Fri Apr 16, 2004 11:59 am 
Beginner
Beginner

Joined: Fri Apr 16, 2004 10:25 am
Posts: 44
Location: Brazil
When I do a insert in oracle with the properties in the hibernate-mapping
that doesnt have the same order as the fields of the table in the DB and there are date fields with time, it inserts wrong data in some fields

example of inserts
properties in the same order as database
35 35 1 'X' 'Fri Apr 16 10:52:53 GMT-03:00 2004' 'Marcel' '16/4/2004 10:52:53' '16/4/2004 10:52:53' '16/4/2004 10:52:53'
properties in another other different than database
31 31 1 '


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 16, 2004 12:07 pm 
Beginner
Beginner

Joined: Fri Apr 16, 2004 10:25 am
Posts: 44
Location: Brazil
sorry, the version of hibernate I'm using is 2.1.2


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 19, 2004 4:28 pm 
Beginner
Beginner

Joined: Fri Apr 16, 2004 10:25 am
Posts: 44
Location: Brazil
Can anyone help me?


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 14, 2004 5:55 am 
I am currently experiencing similar problems with Oracle 8.1.6.
The problem does not occur with in Oracle9. Never tried with 8.1.7...
(I am using hibernate 2.1 and ojdbc14.jar - thin mode)

I notice that writing into fields of type DATE in Oracle 8.1.6
leads to the introduction of very strange chars in other columns...
When commenting the date column in the mapping file, the insert is OK.

I tried without success to force the type (e.g: <column type="x" where x = date, timestamp, java.util.Date, java.sql.Date, java.sql.Timestamp, etc...) of my date column in the mapping file, but it does not work
with any of the type listed above :-(

Probably a bug in Oracle 8.1.6...


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