标签:
记录hibernate简便的查询代码
/** * 通过门店id查询,并且按照id排序 * @param storeId 门店id * @return */ public List<ProductStore> queryByStoreId(Long storeId) { return productStoreDao.findByCriterion(new Order[]{Order.asc("productStoreId")}, Restrictions.eq("productStoreId", storeId),Restrictions.eq("statusId", Status.COMMON_ACTIVE.getStatusId())); }
推荐博文:http://blog.csdn.net/cuiran/article/details/6324083
标签:
原文地址:http://my.oschina.net/u/2264370/blog/377626