I want to check if entity is in a Collection member (@OneToMany or @ManyToMany) of another entity:
@OneToMany
@ManyToMany
if (entity2.getEntities1().conta
There is information in the Hibernate documentation on this topic.