record « Key « JPA Q&A





1. How to update a record in a table with no primary key    forum.hibernate.org

Hello Everyone, I have a table with no primary key. I don't have control over the database. All the fileds in the table can only act as primary key. When i generate .hbm.xml file by using reverse engineering mechanism provided in eclipse, here is the generated .hbm.xml file. In this case when i try to update a record in the table, ...

2. Save record when table do not have primary key    forum.hibernate.org

Hi All, I am facing the problem in the Saving the record here in my table i have not use the primary key.... my code is ...

3. Storing a new record into a table with an FK to another tbl    forum.hibernate.org

Hi, i want to ask about best practices when storing a new record into a table with an FK to another one using DAOs on Hibernate. If i have table A and table B, table A having an FK to table B, using DAOs when i try a create on the A entity i have to supply a B object which ...