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

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -