Hi there, i have a issue about cascadeType.DELETE_ORPHAN, the IDE tell me that this is deprecation, is true , I always use for this orphanRemoval = true?

Code:
@OneToMany(targetEntity=Transportista_Ubigeo.class,
orphanRemoval = true,cascade={javax.persistence.CascadeType.ALL})
//@SuppressWarnings("deprecation")
//@OneToMany(targetEntity=Transportista_Ubigeo.class)
@JoinColumn(name="idtransportista")
//@Cascade (value={CascadeType.SAVE_UPDATE,CascadeType.DELETE_ORPHAN})
public Set<Transportista_Ubigeo> getUbigeoTransportista() {
return ubigeoTransportistas;
}
And when a work with List I the create the classes equals() and hashcode(), how i create this??
thanks