Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 3.0
Name and version of the database you are using:PostgreSQL 8.0
Hi,
I am using Hibernate with postgreSQL 8.0. I can read the data from my Database and also update existing records fine but when I try to insert the save fails on the generator. I have the database tables mapped as follows :
Code:
<class name="SessionToken" table="sessiontoken">
<id name="sessiontokenid" column="sessiontokenid" type="java.lang.Integer" >
<generator class="sequence" >
</generator>
</id>
However I have also tried native, increment and hilo, none of which seems to work.
I know there are people out there using Hibernate and postgreSQL so am hoping I am just missing something. The field is a serial field in the database.
Thanks
Connie
Code: