Announcement Announcement Module
Collapse
No announcement yet.
CascadeType.DELETE_ORPHAN} vs orphanRemoval = true Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • CascadeType.DELETE_ORPHAN} vs orphanRemoval = true

    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
Working...
X