db2 « ID « JPA Q&A





1. DB2 Identity ID Generation    forum.hibernate.org

Hello, I am very new to hibernate and am having a problem with using the identity generator with DB2 V7.2. After creating a new object and passing it to saveOrUpdate I believe hibernate is supposed to save the new id value for the newly created row in the database in that property. This does not occur however, it just sets it ...

2. No id generated (WSAD 5.1.2 & Db2 8.1)    forum.hibernate.org

Hello Everyone: I have a many-to-one relation between two classes Ticket.java & Queue.java. In my Ticket.hbm.xml I have defined the id generator as follows: (I have also tried class="native") However, when I change "class" to "assigned", one row for the first ticket with id=0 is created. With "class" set to "native" or "IdentityGenerator", ...

3. Specifying Owner ID for DB2 in Hibernate    forum.hibernate.org