Bug « Entity « JPA Q&A





1. Bug in Hibernate implementation: Persisting an entity    forum.hibernate.org

Hi Kerstetter Thanks for providing your thoughts I am using Spring's Hibernate Template to do persist. And as you correctly suggested i am setting the primary key (id attribute) to 0 i.e. setId(0) to persist subsequent records, otherwise it will persist only first time. Now my question is Why do i need to set the primary key (id attribute) value to ...