Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / September 2007

Tip: Looking for answers? Try searching our database.

Hibernate305: Two CLOB columns have values reversed

Thread view: 
david.karr - 06 Sep 2007 01:03 GMT
I'm using JDK 1.4.2, Hibernate 3.0.5, Oracle 9i, and Spring 1.2.8.

I have a relatively simple table with 5 columns, two of which are CLOB
values.  I'm using "Hibernate.createClob()" to create a CLOB from the
string. I call this twice in the same method, passing the result to
two different setters on my Hibernate-mapped instance.

I've stepped through this code very carefully, up to the
"sessionFactory.getCurrentSession().save()" call, making sure that I
put the correct value into each CLOB column.  I even examined the
instance fields of the resulting CLOB object.

After the "save()" commits, I inspect the database (with either
SQuirreL or SQLDeveloper), and the resulting values are switched.  The
first value went into the second column, and vice versa.

What could I be doing wrong here?
david.karr - 07 Sep 2007 00:38 GMT
> I'm using JDK 1.4.2, Hibernate 3.0.5, Oracle 9i, and Spring 1.2.8.
>
[quoted text clipped - 13 lines]
>
> What could I be doing wrong here?

If it matters, I found that when I upgraded to the latest 10g driver,
this problem went away.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.