hibernate - @OneToOne not deleted referred element on change -
i have @onetoone unidirectional relation between parent , child. when parent being merge want delete child, when provided child object different existed in database. relation in parent class:
@onetoone(fetch = fetchtype.eager, cascade = cascadetype.all, orphanremoval = true) @joincolumn(name = "object_id") private child child;
Comments
Post a Comment