This content has been marked as final.
Show 3 replies
-
1. Re: @id id data type: primitive or object which one is bette
gus888 Nov 14, 2007 4:56 PM (in response to gus888)No help?
-
2. Re: @id id data type: primitive or object which one is bette
mazz Nov 14, 2007 5:00 PM (in response to gus888)i use primitives, seems to make the most sense (since its a primary key, its can't be nullable, so using larger Object representation doesn't seem necessary).
Some people don't like setting the primitive int to "0" to indicate the ID isn't set - if you are one of those people, use Integer so you can set it to null to indicate the primary key isn't set yet. -
3. Re: @id id data type: primitive or object which one is bette
gus888 Nov 15, 2007 11:05 AM (in response to gus888)Thank you very much, Mazz.