On Tue, Feb 10, 2009 at 7:33 AM, Ville Virtanen <ville.virta...@cerion.fi> wrote:
> Sometimes if you want to assign the id an not let the DB do it for you it is > good to be able to have null values. Also checkin whether the object is > already saved can be achieved by just checking id != null. Perfect explanation. Checking id != null is exactly what Hibernate does when it wants to know if a given object exists in the database or not. > Primitive int defaults to zero without initialization? Any Java primitive integer type defaults to zero without initialization. -- Thiago --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org