[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Many-to-one writes non-existing IDs to the DB occasional
swenbarth
do-not-reply at jboss.com
Tue Jan 23 05:25:03 EST 2007
Ok, I have some additional info. In one case, the correct ID that SHOULD have been there is id1 = 119773. The wrong id is id2 = 87005.
If I convert those to binary format, I get:
| id1 = 11101001111011101
| id2 = 10101001111011101
|
As you can see, the second bit (from the left) flipped.
I'm beginning to see where the problem may be... something with number conversion between formats?
My IDs in the Java classes are of type java.lang.Long, the corresponding fields in the DB (PK and FK columns, autogenerated) are of type BIGINT(20).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4005236#4005236
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4005236
More information about the jboss-user
mailing list