-->
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.  [ 6 posts ] 
Author Message
 Post subject: Strange data when inserting into oracle
PostPosted: Mon Apr 26, 2004 3:44 pm 
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 ( the 'X' value chenged to '


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 27, 2004 4:33 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Don't clearly understand your problem, but I'm inclined not to believe you (especially the <property> move leading to an error).

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 27, 2004 7:40 am 
Beginner
Beginner

Joined: Fri Apr 16, 2004 10:25 am
Posts: 44
Location: Brazil
well, when I first saw it I couldn't believe neither, I spend some days trying to understand whats going on but I saw it happen.

I change de property tag from one place to another and the data inserted changed to some strange characters (this just happen if you have a date field and try to insert date and time in that field)

I think is something in the oracle configuration that the DBA changed that produce that error but I'm not sure.

I know its not the driver cause I made a insert using preparedstatement and it ran OK.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 27, 2004 8:07 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
This is definitely not a problem with Hibernate.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 27, 2004 8:17 am 
Beginner
Beginner

Joined: Fri Apr 16, 2004 10:25 am
Posts: 44
Location: Brazil
why hibernate insert wrong data when changing the properties tags order ?

the DBA claims that he didn't change anything, I'm inclined to believe him because the error happens in production server as well as in development server, and he didn't changed anything in production server.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 27, 2004 9:18 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
I suspect some strange character encoding problems ... definately not a Hibernate issue.


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