很笨的一个方法
String hql = "select * from functions where id="+id+" and name="+name;
PreparedStatement pstmt=conn.prepareStatement(hql);