Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0
-
None
-
3.0M1, derby, mac, java 5
Description
Having a table with a int primary key mapped to a Integer. Setting this value to Integer.valueOf(0) makes cayenne create its own primary key. So instead of value zero, the primary key will be 200 or whatever.
Here is a test that shows this behaviour:
public void testInsertWithMeaningfulPKValueZero() throws Exception