Hi,
The ids in my postgresql database are auto-incremental (there are sequences defined in a database). When creating a hibernate mapping files I set the class generator to increment:
<class name="model.Names" schema="public" table="names">
<id name="id" type="int">
<column name="id"/>
<generator class="increment"/>
</id>
However, I keep getting all kinds of errors (null pointer exceptions, org.hibernate.TransactionException: Transaction not successfully started) so I first wanted to make sure that this is the right generator class before debugging and looking for errors elsewhere. I tried sequence (does not work at all, the increment works in some cases). The application is written in JSF 2.0.
Thanks in advance for any suggestions.
Best Regards, sass.