[jboss-user] [JBoss Seam] - Re: How to insert a timestamp to a Not Nullable column from

anarinsky do-not-reply at jboss.com
Thu Apr 5 21:10:21 EDT 2007


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



More information about the jboss-user mailing list