* Connection to table "business_contacts" (commercial contacts)
*/
@JoinColumn (name = "entry_business_contact_id", updatable = false)
- @OneToOne (targetEntity = CompanyContact.class, cascade = CascadeType.ALL)
+ @OneToOne (targetEntity = CompanyContact.class, cascade = CascadeType.MERGE)
private BusinessContact addressbookEntryBusinessContact;
/**
* Connection to table "contacts" (private contacts)
*/
@JoinColumn (name = "entry_private_contact_id", updatable = false)
- @OneToOne (targetEntity = UserContact.class, cascade = CascadeType.ALL)
+ @OneToOne (targetEntity = UserContact.class, cascade = CascadeType.MERGE)
private Contact addressbookEntryPrivateContact;
/**
* Connection to table "addressbooks"
*/
@JoinColumn (name = "entry_addressbook_id", nullable = false, updatable = false)
- @OneToOne (targetEntity = UserAddressbook.class, optional = false, cascade = CascadeType.ALL)
+ @OneToOne (targetEntity = UserAddressbook.class, optional = false, cascade = CascadeType.MERGE)
private Addressbook addressbookId;
@Override