}
// Set created instance
- product.setProductCreated(new Date());
+ product.setProductEntryCreated(new Date());
// Persist it
this.getEntityManager().persist(product);
}
// Merge data
- final Product detachedProduct = this.mergeProductData(product);
+ final Product managedProduct = this.mergeProductData(product);
+
+ // Set updated instance
+ managedProduct.setProductEntryUpdated(new Date());
// Trace message
- this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.updateProductData: detachedProduct={1} - EXIT!", this.getClass().getSimpleName(), detachedProduct)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.updateProductData: managedProduct={1} - EXIT!", this.getClass().getSimpleName(), managedProduct)); //NOI18N
// Return it
- return detachedProduct;
+ return managedProduct;
}
/**