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

hibernate - How to load global settings frequently used in application in Java -

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

objective c - Ownership modifiers with manual reference counting -