• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 191
  • Last Modified:

Hibernate object duplication error

I have two classes that are unrelated but happened to have the same value for the id attribute in the HBM configuration. Would instances of these two with same value for ID be detected as duplicates in the same session?

Thanks in advance.
1 Solution
no, because they are different types

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now