Hi Ulli, a primary key being null (the field in the object not the value in the db-table) occurs, when an entity is created in the app-tier and not yet stored to the database. That is one way (and afaik the most common) for the OR-mapper to know that the entity is new and has to "ask" for a value for the primary key before insert. Regards, nillehammer
-- http://www.winfonet.eu ----- original Nachricht -------- Betreff: Re: Hibernate ID Gesendet: Di, 10. Feb 2009 Von: Ulrich Stärk<u...@spielviel.de> a Integer is a much better fit than an int. > > Why is that? I couldn't imagine a case where you want your primary key > value to be NULL (apart from the fact that I don't know any DBMS that > allows that). > > Uli --- original Nachricht Ende ---- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org