Example #1
0
 @SuppressWarnings("unchecked")
 public List<Payment> getByReceiptNum(Payment payment) {
   String hql = "from Payment p where p.receiptNum=?";
   return getHibernateTemplate().find(hql, payment.getReceiptNum());
 }
Example #2
0
 public Payment get(Payment payment) {
   return (Payment) getObject(Payment.class, payment.getId());
 }