Should transient-fields(@Transient) of a Entity-Class
should also be in hashCode/equals-Method?
posted 7 years ago
No, you don't want to include those in the equals/hashCode methods. @Transient fields are not persisted, so a persistent object and a transient object might be equal even though their @Transient fields are different.