From a62d5e5ba8fb83157d27a93e4fc9574aed05efe2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 24 Apr 2020 13:58:34 +0200 Subject: [PATCH] Continued: - added property productFscNumber MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../jproduct/model/product/GenericProduct.java | 16 ++++++++++++++++ .../mxchange/jproduct/model/product/Product.java | 14 ++++++++++++++ .../jproduct/model/product/Products.java | 1 + 3 files changed, 31 insertions(+) diff --git a/src/org/mxchange/jproduct/model/product/GenericProduct.java b/src/org/mxchange/jproduct/model/product/GenericProduct.java index 6ff6e9e..6dd9a00 100644 --- a/src/org/mxchange/jproduct/model/product/GenericProduct.java +++ b/src/org/mxchange/jproduct/model/product/GenericProduct.java @@ -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; diff --git a/src/org/mxchange/jproduct/model/product/Product.java b/src/org/mxchange/jproduct/model/product/Product.java index e14ef94..4d15b2f 100644 --- a/src/org/mxchange/jproduct/model/product/Product.java +++ b/src/org/mxchange/jproduct/model/product/Product.java @@ -184,6 +184,20 @@ public interface Product extends Comparable, Serializable { */ void setProductCurrencyCode (final String productCurrencyCode); + /** + * Getter for product's FSC number + *

+ * @return Product's FSC number + */ + String getProductFscNumber (); + + /** + * Setter for product's FSC number + *

+ * @param productFscNumber Product's FSC number + */ + void setProductFscNumber (final String productFscNumber); + /** * Getter for i18n key of product *

diff --git a/src/org/mxchange/jproduct/model/product/Products.java b/src/org/mxchange/jproduct/model/product/Products.java index 33becc4..c5321cb 100644 --- a/src/org/mxchange/jproduct/model/product/Products.java +++ b/src/org/mxchange/jproduct/model/product/Products.java @@ -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()); -- 2.39.5