摘要: 1.显示大类别下的所有产品a.查找某个类别下面的所有子类及子类的子类 View Code 1 @SuppressWarnings("unchecked") 2 @Transactional(readOnly=true,propagation=Propagation.NOT_SUPPORTED)//该方法为只读,不需要事务支持 3 public List<ProductType> getChildsByParentId(Integer parentId){ 4 Query query = entityManager.createQuery("select 阅读全文
posted @ 2012-05-02 12:44 xiao秋 阅读(650) 评论(0) 推荐(0) 编辑