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

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

javascript - jquery or ashx not working -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -