コード例 #1
0
 @Override
 public Boolean deleteSpecialPromotion(SpecialPromotion theSpecialPromotion) {
   Boolean b = false;
   try {
     theSpecialPromotion = findSpecialPromotionById(theSpecialPromotion.getSpecialPromotionId());
     entityManager.remove(theSpecialPromotion);
     b = true;
   } catch (Exception e) {
   }
   return b;
 }
コード例 #2
0
 @Override
 public SpecialPromotion findSpecialPromotion(SpecialPromotion theSpecialPromotion) {
   return entityManager.find(SpecialPromotion.class, theSpecialPromotion.getSpecialPromotionId());
 }