throw new IllegalStateException(MessageFormat.format("detachedProduct.productId={0} is not valid.", detachedProduct.getProductId())); //NOI18N
}
- // Set updated timestamp
- detachedProduct.setProductEntryUpdated(new Date());
-
// Get product from it and find it
final Product foundProduct = this.createManaged(detachedProduct);
// Merge product instance
final Product managedProduct = this.getEntityManager().merge(foundProduct);
+ // Should be there
+ assert (managedProduct instanceof Product) : "managedProduct is null"; //NOI18N
+
+ // Set updated timestamp
+ managedProduct.setProductEntryUpdated(new Date());
+
// Trace message
this.getLoggerBeanLocal().logTrace(MessageFormat.format("mergeProductData: managedProduct={0} - EXIT!", managedProduct)); //NOI18N