]> git.mxchange.org Git - jproduct-core.git/commitdiff
minor cleanups
authorRoland Haeder <roland@mxchange.org>
Tue, 29 Sep 2015 07:37:08 +0000 (09:37 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 29 Sep 2015 07:37:08 +0000 (09:37 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/org/mxchange/jshopcore/model/customer/ShopCustomer.java
src/org/mxchange/jshopcore/model/product/GenericProduct.java

index e4dce08bb4c09c5f7355a42d5770c21b66b147d1..606f633d4e2ff3d1e24e8042e79e0c5ab4af28f0 100644 (file)
@@ -52,7 +52,7 @@ public class ShopCustomer implements Customer {
         * 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;
 
        /**
index e9ac607df776d39794758c03171dcb89a2e06fbf..36406acd0762963127666631afae398e99f24b36 100644 (file)
@@ -110,7 +110,7 @@ public class GenericProduct implements Product, Comparable<Product> {
                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
@@ -119,7 +119,7 @@ public class GenericProduct implements Product, Comparable<Product> {
                        // This productId is larger than compared to
                        return 1;
                }
-               
+
                // The other productId is larger
                return -1;
        }