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

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -