Hi:
Check the generator class in your Event.hbm.xml that is suitable to your needs. You should read
http://www.hibernate.org/hib_docs/refer ... pping.html in section 5.1.4.1. Generator. As I see in your stack trace you are using Oracle as DBMS.
For example for my non-clustered DB2 database
In my Event.hbm.xml:
Code:
<id name="id" column="EVENT_ID">
<generator class="sequence">
<param name="sequence">event_sequence</param>
</generator>
</id>
And create the database sequence object:
Code:
db2 =>create sequence event_sequence start with 1 increment by 1
Hope Its usefull