@OneToOne (targetEntity = ProductCategory.class, cascade = CascadeType.REFRESH, optional = false)
private Category productCategory;
+ /**
+ * Currency code for both prices, like EUR or USD
+ */
+ @Basic (optional = false)
+ @Column (name = "product_currency_code", nullable = false, length = 3)
+ private String productCurrencyCode;
+
/**
* When this product has been created
*/
@Basic (optional = false)
- @Column (name = "product_created", nullable = false, updatable = false)
+ @Column (name = "product_entry_created", nullable = false, updatable = false)
@Temporal (TemporalType.TIMESTAMP)
- private Date productCreated;
+ private Date productEntryCreated;
/**
- * Currency code for both prices, like EUR or USD
+ * When this product has been created
*/
- @Basic (optional = false)
- @Column (name = "product_currency_code", nullable = false, length = 3)
- private String productCurrencyCode;
+ @Column (name = "product_entry_updated", insertable = false)
+ @Temporal (TemporalType.TIMESTAMP)
+ private Date productEntryUpdated;
/**
* Gross price of product
this.productCategory = productCategory;
}
+ @Override
+ public String getProductCurrencyCode () {
+ return this.productCurrencyCode;
+ }
+
+ @Override
+ public void setProductCurrencyCode (final String productCurrencyCode) {
+ this.productCurrencyCode = productCurrencyCode;
+ }
+
@Override
@SuppressWarnings ("ReturnOfDateField")
- public Date getProductCreated () {
- return this.productCreated;
+ public Date getProductEntryCreated () {
+ return this.productEntryCreated;
}
@Override
@SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setProductCreated (final Date productCreated) {
- this.productCreated = productCreated;
+ public void setProductEntryCreated (final Date productEntryCreated) {
+ this.productEntryCreated = productEntryCreated;
}
@Override
- public String getProductCurrencyCode () {
- return this.productCurrencyCode;
+ @SuppressWarnings ("ReturnOfDateField")
+ public Date getProductEntryUpdated () {
+ return this.productEntryUpdated;
}
@Override
- public void setProductCurrencyCode (final String productCurrencyCode) {
- this.productCurrencyCode = productCurrencyCode;
+ @SuppressWarnings ("AssignmentToDateFieldFromParameter")
+ public void setProductEntryUpdated (final Date productEntryUpdated) {
+ this.productEntryUpdated = productEntryUpdated;
}
@Override
* <p>
* @return Created timestamp
*/
- Date getProductCreated ();
+ Date getProductEntryCreated ();
/**
* Setter for created timestamp
* <p>
- * @param productCreated Created timestamp
+ * @param productEntryCreated Created timestamp
*/
- void setProductCreated (final Date productCreated);
+ void setProductEntryCreated (final Date productEntryCreated);
+
+ /**
+ * Getter for updated timestamp
+ * <p>
+ * @return Updated timestamp
+ */
+ Date getProductEntryUpdated ();
+
+ /**
+ * Setter for updated timestamp
+ * <p>
+ * @param productEntryUpdated Updated timestamp
+ */
+ void setProductEntryUpdated (final Date productEntryCreated);
/**
* Getter for product availability