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 (ID,NAME,VORNAME) VALUES
('1','a1','b1')
1119851348515|0|1|statement||SELECT ID FROM ADRESSE WHERE ID = '2'
1119851348515|0|1|statement||INSERT INTO ADRESSE (ID,NAME,VORNAME) VALUES
('2','a2','b')
But when the primarykey (int type) has the value 0, then only this will be
emitted, without a preceding select statement:
1119853301733|0|1|statement||INSERT INTO ADRESSE (ID,NAME,VORNAME) VALUES
('0','B0','M0')
Why?
OJB 1.0.3, Broker-API, no autoincrement primarykey.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]