Hi, I'm trying to persist a composite-id class which is composed out 2 fields as primary key. This isn't the first time I'm using composite class, so I think how it should work. I have used it on the same database, except this is another table.
This time I'm facing a very strange problem: When I inspect my object in Eclipse, every value on the object that's going to be persisted looks good (=every value is correctly filled up, the primary key object is mapped to the genaral object).
After I save() my object, the log4j logging looks like this: INSERT INTO xxx (aa,bb,cc,dd) values(?,?,?,?)
binding parameter 1 to 1234
binding parameter 2 to 7845101
binding parameter 3 to 2007-01-10 12:14:45
binding parameter 4 to 2006-10-10 12:45:45
Now the strange this is, when I look in my database value 'bb' doesn't look like '7845101' but is another randomly(?) value like '@45e2df'. All other values - even the other PK - is filled out correctly
I thought the values which is shown in the logging is actually inserted. Do you have any idea what can be wrong?
Hibernate version: 3.0.5 using it with Spring 1.2.8
Name and version of the database you are using: Oracle 9i
Thx for any help!
|