1

I believed so many people have experienced this issue stated as title and cleary expressed on hibernate jira and on stackOV 1 and stackOV 2 . i use hibernate 4.0.1.Final and spring-data-jpa 1.1.0.M1 . the concerbed POJOs are actully ID Generated so i would like to find out whether specific implementation of equals and hashcode can help solve the problem or i would have to find another way of generating the IDs

thanks for reading this.

Community
  • 1
  • 1
black sensei
  • 6,528
  • 22
  • 109
  • 188
  • 1
    How do you generate the id? When I use the database mechanisms (autoincrement or sequence) then I never have any problems. – Johanna Oct 31 '12 at 08:08

1 Answers1

0

Never Mind!!

I Had a unique on a field which was the source of the problem. And By the way i use identity(autoincrement)

@Id
@GeneratedValue(strategy= GenerationType.IDENTITY)
black sensei
  • 6,528
  • 22
  • 109
  • 188