get(Class entityClass,Serializable id)
public TbUser getUser(Integer id){ HibernateTemplate htm = getHibernateTemplate(); TbUser user = (TbUser)htm.get(TbUser.class,id); //獲取使用者實體物件 return user; }