Signed-off-by:Roland Häder <roland@mxchange.org>
* Id number from "contacts" table
*/
@JoinColumn (name = "contact_id", nullable = false, updatable = false, unique = true)
- @OneToOne (optional = false, targetEntity = UserContact.class)
+ @OneToOne (targetEntity = UserContact.class, optional = false)
private Contact contact;
/**
if (null == product) {
throw new NullPointerException("product is null"); //NOI18N
}
-
+
// Is the productId the same?
if (Objects.equals(this.getProductId(), product.getProductId())) {
// Same productId, means same productCategory
// This productId is larger than compared to
return 1;
}
-
+
// The other productId is larger
return -1;
}