@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(); }
@Transient public static List<TransactionCategory> getAll(ApplicationContext context) { return DBUtil.getInstance(context).findAll(TransactionCategory.class); }