Quote:
Hibernate: insert into PUBLIC.ROOSTERS (FIELDNUM, DAY_NUM, START_TIME, END_TIME, ROOSTER_ID) values (?, ?, ?, ?, null)
<class name="model.beans.Rooster" table="ROOSTERS" schema="PUBLIC">
<id name="roosterId" type="java.lang.Long">
<column name="ROOSTER_ID" />
<generator class="assigned"></generator>
</id>
...
I notice that the ROOSTER_ID is null, in your previous post, you have set the ID property to "assigned" meaning that the application is supposed to take care of the ROOSTER_ID. Therefore, it looks like when you are creating a new ROOSTER your not giving it an ID before you are saving it.
If you wanted to use an identity, the generator should be:
<generator class="identity" />
Hope this helps,
Darin