Hi,
there seems to be a bug in the generated EntityHomeWrapper code.
when using a compound primary key the create method fails with an SQLException.
looking at the code it appears you don't correctly increment the parameter
index.
the following is an extract from the generated create method where you
check for an
existing pk:
if(response.object.userID == null) findStatement.setNull(1,
java.sql.Types.VARCHAR);
else findStatement.setString(1, response.object.userID);
if(response.object.groupID == null) findStatement.setNull(1,
java.sql.Types.VARCHAR);
else findStatement.setString(1, response.object.groupID);
this happens with the latest orion build and has been reported previously
by Paul Hosking
but nobody replied.
any comments would be greatly appreciated.
--Jochen Strunk