Commit 537fd8cb by Tuukka Kivilahti

findById -> reload

1 parent 39fad5da
......@@ -91,4 +91,6 @@ public interface ProductBeanLocal {
ProductOption findOptionById(Integer id);
void deleteProductOptionGroup(ProductOptionGroup group);
Product reload(Product product);
}
......@@ -655,5 +655,10 @@ public class ProductBean implements ProductBeanLocal {
}
@Override
public Product reload(Product product) {
return productFacade.reload(product);
}
}
......@@ -259,7 +259,7 @@ public class ProductView extends GenericCDIView {
productOptionGroup = null;
// flush product, I liek id's for everyone
product = prodbean.findById(product.getId());
product = prodbean.reload(product);
return "/product/edit";
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!