Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Problems with JPA/Hibernate. Parent comment
E.g. If say
Person { id: Integer, name: String }
Id can be automatically generated by Hibernate on save/create.
After save the Id now has a new value. I.e. its hash differs from when it was saved.
Boom. You have HashSet with Zombie entries. That are technically that you can't fetch actually.
There are no comments on this comment yet.
E.g. If say
Let's say I have some entity that stores Persons as HashSet. If I add them before saving, their hash set is taken without Id.Id can be automatically generated by Hibernate on save/create.
After save the Id now has a new value. I.e. its hash differs from when it was saved.
Boom. You have HashSet with Zombie entries. That are technically that you can't fetch actually.