摘要:
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 阅读全文
摘要:
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 阅读全文