make this product part of some order = decrease stored , increase reserved concode_field_sep Logger log concode_elem_sep EntityManager em concode_field_sep void invoiceProduct concode_elem_sep List<Long> getProductIds concode_elem_sep Product addProduct concode_elem_sep void unreserveProducts concode_elem_sep Product getProductById concode_elem_sep Long getProductTableCount concode_elem_sep Product getProductByName concode_elem_sep Product getRandomProduct concode_elem_sep Long getProductByNameCount concode_elem_sep void clearProductsTable concode_elem_sep List<Product> getProducts concode_elem_sep List<String> getProductNames concode_elem_sep void deleteProduct
void function ( Long arg0 , Long arg1 ) { Product loc0 = em . find ( Product . class , arg0 ) ; log . fine ( loc0 . toString ( ) + "srini_string" + loc0 . addStored ( arg0 ) ) ; if ( loc0 . getStored ( ) < loc0 . addReserved ( arg1 ) ) { loc0 . addStored ( 1000L ) ; } em . merge ( loc0 ) ; }