This content has been marked as final.
Show 3 replies
-
1. Re: HibernateException: Missing sequence or table
pmuir Mar 7, 2007 2:59 PM (in response to umk)Ask this is in the JPA hibernate forum :)
-
2. Re: HibernateException: Missing sequence or table
christophemiro Mar 8, 2007 4:28 AM (in response to umk)I had the same problem on a SERIAL field on a postgresql database and we solved this using @GeneratedValue(strategy=GenerationType.IDENTITY) and letting the database using the sequence automaticaly.
Christophe -
3. Re: HibernateException: Missing sequence or table
umk Mar 8, 2007 8:18 AM (in response to umk)"ChristopheMiro" wrote:
I had the same problem on a SERIAL field on a postgresql database and we solved this using @GeneratedValue(strategy=GenerationType.IDENTITY) and letting the database using the sequence automaticaly.
Christophe
Thanks for the suggestion but I'm using Oracle. I don't think it supports GenerationType.IDENTITY
I have posted the same question in the Hibernate JPA forum:
http://forum.hibernate.org/viewtopic.php?t=971878&highlight=hibernateexception+sequence