2019独角兽企业重金招聘Python工程师标准>>>
protected Person getOne(int id){
Session session = HibernateSessionFactory.getSession();
Person person = new Person();
try{
session.load(person, id);
}catch(Exception e){
e.printStackTrace();
}finally{
session.close();
}
return person;
}