CREATE TABLE tablename ( colname SERIAL PRIMARY KEY );
Ebean.createSqlUpdate(query);int rowsInserted = Ebean.execute(sqlUpdate);
It is a group by that inserts multiple rows and it fails if the id field is not marked as SERIAL.