import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
+import javax.persistence.NamedQueries;
+import javax.persistence.NamedQuery;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import org.mxchange.addressbook.model.addressbook.Addressbook;
*/
@Entity (name = "addressbook_shares")
@Table (name = "addressbook_shares")
+@NamedQueries (
+ @NamedQuery (name = "SearchUserSharedAddressbooks", query = "SELECT s FROM addressbook_shares AS s WHERE s.shareUserOwner = :user ORDER BY s.shareId ASC")
+)
public class AddressbookShare implements ShareableAddressbook, Comparable<ShareableAddressbook> {
/**