Thank you, great. Prepersist did help.  

Still, with above scenario I have the problem with id.  It supposed to be auto 
generated.  However, when I add @GeneratedValue I am getting the exception on 
startup:
ObjectName: persistence.units:ear=spot4.ear,unitName=spot4
  State: FAILED
  Reason: javax.persistence.PersistenceException: 
org.hibernate.HibernateException: Missing sequence or table: hibernate_sequence
  I Depend On:
    jboss.jca:service=DataSourceBinding,name=spot4Datasource

With the old variant of Hibernate this auto sequence generated worked with the 
following annotation  used in Doclet:
/**
 * @hibernate.id column="ID" generator-class="increment" unsaved-value="0"
 */ 
Again, any suggestions?


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035202#4035202

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035202
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to