Emitted SQL statement für primarykey-value 0?

2005-06-27 Thread Claude . Glauser
Hi, When I do an insert operation on a simple persistent class (Adress: int id, String name, String firstname), then the following sql statements will be emitted by ojb: 1119851348515|0|1|statement||SELECT ID FROM ADRESSE WHERE ID = '1' 1119851348515|0|1|statement||INSERT INTO ADRESSE

Re: Emitted SQL statement für primarykey-value 0?

2005-06-27 Thread Thomas Dudziak
When you'e using the type int for your primary key (as opposed to using Integer), then there isn't a language-provided 'null' value. However OJB needs such a null value in order to determine whether the object has already be stored (pk != null) or not. For the primitive type int, the null value is