@Override public Boolean deleteSpecialPromotion(SpecialPromotion theSpecialPromotion) { Boolean b = false; try { theSpecialPromotion = findSpecialPromotionById(theSpecialPromotion.getSpecialPromotionId()); entityManager.remove(theSpecialPromotion); b = true; } catch (Exception e) { } return b; }
@Override public SpecialPromotion findSpecialPromotion(SpecialPromotion theSpecialPromotion) { return entityManager.find(SpecialPromotion.class, theSpecialPromotion.getSpecialPromotionId()); }