Exemplo n.º 1
0
 @Transient
 @SuppressWarnings("unchecked")
 public static List<TransactionCategory> getByType(ApplicationContext context, CatType type) {
   return DBUtil.getCurrentSession(context)
       .createQuery("from az.his.persist.TransactionCategory where type = :type")
       .setParameter("type", type)
       .list();
 }
Exemplo n.º 2
0
 @Transient
 public static List<TransactionCategory> getAll(ApplicationContext context) {
   return DBUtil.getInstance(context).findAll(TransactionCategory.class);
 }