@Override
	public Person findByAddressId(int id) {
		// TODO Auto-generated method stub
		ArrayList personList = (ArrayList) getHibernateTemplate().find("from Person p where p.address.id = 2");
		
		if(personList!=null&&personList.size()>0){
			for(int i=0;i<personList.size();i++){
				Person p = (Person)personList.get(0);
				System.out.println("dao login:"+p.getAddress().getDetail());
			}
			
			return (Person)personList.get(0);
		}
		
		return null;
	}