* Connection to "users" table
*/
@JoinColumn (name = "addressbook_user_id", nullable = false)
- @OneToOne (targetEntity = LoginUser.class, optional = false, cascade = CascadeType.REFRESH)
+ @OneToOne (targetEntity = LoginUser.class, cascade = CascadeType.REFRESH, optional = false)
private User addressbookUser;
/**
* Connection to table "addressbooks"
*/
@JoinColumn (name = "entry_addressbook_id", nullable = false, updatable = false)
- @OneToOne (targetEntity = UserAddressbook.class, optional = false, cascade = CascadeType.REFRESH)
+ @OneToOne (targetEntity = UserAddressbook.class, cascade = CascadeType.REFRESH, optional = false)
private Addressbook addressbookId;
@Override