I am using Postgres 8.X as DB, JBOSS 5 as app server. Most of my primary keys in tables are defined as serial type in DB and generated through Postgres sequence.
I tried different GenerationType but it doesn't work.
The sequence generation used to work before with JBOSS 4.X. we recently upgraded to JBOSS5 and sequence generation started giving following error.(Not sure if JBOSS5 has anything to do with this error)
2009-08-07 16:15:11,609 INFO [STDOUT] (http-127.0.0.1-8080-1) Hibernate: