david@windward.net wrote:
Yes, but it is used for PKs and AFAIK you cannot have a NULL PK
??? - thanks - dave
You're right, BUT you only talk about objects which are already in the database (persistent objects) and have a primary key. Objects can also be transient - when they are created (Object o = new Object()). In this case they usually have no primary key (except for the situation the key is assigned manually and not by the database) and they are marked being transient using the XML attribute "unsaved-value". This can be NULL in case of a Long and must be another value for long, since a long cannot be NULL.
I think there is also information about this (transient and persistent state) in the documentation and HiA book.
Best regards
Sven