2012年12月21日
摘要: Session session = this.getSessionFactory().getCurrentSession(); Criteria criteria = session.createCriteria(DisInfo.class, "d"); criteria.createAlias("d.resources", "r", Criteria.INNER_JOIN); criteria.add(Restrictions.in("r.area.id", new Integer[]{3,5})); crite 阅读全文
posted @ 2012-12-21 15:51 cfd406635982 阅读(394) 评论(0) 推荐(0) 编辑
摘要: org.springframework.beans.factory包下有一个接口是InitializingBean 只有一个方法:/** * Invoked by a BeanFactory after it has set all bean properties supplied * (and satisfied BeanFactoryAware and ApplicationContextAware). * <p>This method allows the bean instance to perform initialization only * possible when 阅读全文
posted @ 2012-12-21 12:01 cfd406635982 阅读(27534) 评论(0) 推荐(0) 编辑