Should I write equals() and hashCode() methods in JPA entities?

后端 未结 6 1873
说谎
说谎 2020-11-28 19:35

I want to check if entity is in a Collection member (@OneToMany or @ManyToMany) of another entity:

if (entity2.getEntities1().conta         


        
6条回答
提交回复
热议问题