import javax.persistence.TemporalType;
import org.mxchange.jaddressbookcore.model.addressbook.Addressbook;
import org.mxchange.jaddressbookcore.model.addressbook.UserAddressbook;
-import org.mxchange.jusercore.model.user.LoginUser;
import org.mxchange.jusercore.model.user.User;
/**
* User who is owning the share
*/
@JoinColumn (name = "share_owner_id", nullable = false, updatable = false)
- @OneToOne (targetEntity = LoginUser.class, cascade = CascadeType.REFRESH, optional = false)
+ @OneToOne (targetEntity = User.class, cascade = CascadeType.REFRESH, optional = false)
private User shareUserOwner;
/**
* User the address book is shared with
*/
@JoinColumn (name = "share_sharee_id", nullable = false, updatable = false)
- @OneToOne (targetEntity = LoginUser.class, cascade = CascadeType.REFRESH, optional = false)
+ @OneToOne (targetEntity = User.class, cascade = CascadeType.REFRESH, optional = false)
private User shareUserSharee;
/**