]> git.mxchange.org Git - jproduct-core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Sun, 29 Oct 2017 14:54:42 +0000 (15:54 +0100)
committerRoland Häder <roland@mxchange.org>
Sun, 29 Oct 2017 14:54:42 +0000 (15:54 +0100)
- ops, forgot to add Column/Basic annotations, the currency code is a 3-letter
  code, like EUR or USD, and not just $ or other symbols.

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

index d3e2f9dd831e139e8a6c2a449c068c3d16567425..424d8b9e24fdab9924a1b3302bc26377ea45a8bb 100644 (file)
@@ -84,8 +84,10 @@ public class GenericProduct implements Product {
        private Date productCreated;
 
        /**
-        * Currency code for both prices
+        * Currency code for both prices, like EUR or USD
         */
+       @Basic(optional = false)
+       @Column(name = "product_currency_code", nullable = false, length = 3)
        private String productCurrencyCode;
 
        /**