]> git.mxchange.org Git - jproduct-core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Fri, 24 Apr 2020 11:58:34 +0000 (13:58 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 24 Apr 2020 11:58:34 +0000 (13:58 +0200)
- added property productFscNumber

Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jproduct/model/product/GenericProduct.java
src/org/mxchange/jproduct/model/product/Product.java
src/org/mxchange/jproduct/model/product/Products.java

index 6ff6e9ef4be72bed4803a9434973212349761ef2..6dd9a0096e850a9f94128a8b926878fd4d8f7ade 100644 (file)
@@ -129,6 +129,12 @@ public class GenericProduct implements Product {
        @Temporal (TemporalType.TIMESTAMP)
        private Date productEntryUpdated;
 
+       /**
+        * Product's FSC number including leading C.
+        */
+       @Column (name = "product_fsc_number", length = 7)
+       private String productFscNumber;
+
        /**
         * Gross price of product
         */
@@ -423,6 +429,16 @@ public class GenericProduct implements Product {
                this.productEntryUpdated = productEntryUpdated;
        }
 
+       @Override
+       public String getProductFscNumber () {
+               return this.productFscNumber;
+       }
+
+       @Override
+       public void setProductFscNumber (final String productFscNumber) {
+               this.productFscNumber = productFscNumber;
+       }
+
        @Override
        public BigDecimal getProductGrossPrice () {
                return this.productGrossPrice;
index e14ef94ca2336d3968e139a65ff7f56883bdb93b..4d15b2fead1d4ecf1ae1f40ab1920717d3c2a5e4 100644 (file)
@@ -184,6 +184,20 @@ public interface Product extends Comparable<Product>, Serializable {
         */
        void setProductCurrencyCode (final String productCurrencyCode);
 
+       /**
+        * Getter for product's FSC number
+        * <p>
+        * @return Product's FSC number
+        */
+       String getProductFscNumber ();
+
+       /**
+        * Setter for product's FSC number
+        * <p>
+        * @param productFscNumber Product's FSC number
+        */
+       void setProductFscNumber (final String productFscNumber);
+
        /**
         * Getter for i18n key of product
         * <p>
index 33becc4afe181afc69fb881a569dfd4a3080b2d3..c5321cbe1622827c859077c82e0522ff3a865a74 100644 (file)
@@ -81,6 +81,7 @@ public class Products implements Serializable {
                targetProduct.setProductBarCodeNumber(sourceProduct.getProductBarCodeNumber());
                targetProduct.setProductCategory(sourceProduct.getProductCategory());
                targetProduct.setProductCurrencyCode(sourceProduct.getProductCurrencyCode());
+               targetProduct.setProductFscNumber(sourceProduct.getProductFscNumber());
                targetProduct.setProductGrossPrice(sourceProduct.getProductGrossPrice());
                targetProduct.setProductI18nKey(sourceProduct.getProductI18nKey());
                targetProduct.setProductManufacturer(sourceProduct.getProductManufacturer());