import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.mxchange.jaddressbookcore.model.addressbook.status.AddressbokStatus;
+import org.mxchange.jusercore.model.user.LoginUser;
import org.mxchange.jusercore.model.user.User;
/**
@NamedQuery (name = "SearchAddressbookById", query = "SELECT a FROM addressbooks AS a WHERE a.addressbookId = :id")
}
)
+@SuppressWarnings ("PersistenceUnitPresent")
public class UserAddressbook implements Addressbook {
/**
* Connection to "users" table
*/
@JoinColumn (name = "addressbook_user_id", nullable = false)
- @OneToOne (targetEntity = User.class, cascade = CascadeType.REFRESH, optional = false)
+ @OneToOne (targetEntity = LoginUser.class, cascade = CascadeType.REFRESH, optional = false)
private User addressbookUser;
/**