|
Craig Russell made changes - 03/Jan/06 10:50 AM
The patch looks good.
One question: with the patch 0 cannot be used as valid id, because the code interprets id=0 as undefined id. If this is an issue we could store the value as a java.lang.Long. Then null means id is not specified. But I'm not sure whether this is worth the effort.
Craig Russell made changes - 04/Jan/06 09:24 AM
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This patch changes the setXXXId methods to throw IllegalStateException only if the id is already set.