我查询代码写的多余了
select b from Body b,Story s where b.cheapterId=(select max(b.cheapterId) from Body b,Story s where s.story=? )  后来我无耻了点 我直接赋值 我就不用max了
int[] aa=new int[2];
int idd=13;
id=3;
aa[0]=id;
aa[1]=idd;
return (Body)this.getHibernateTemplate().find("select b from Body b,StoryName s where s.storyId=? and b.chapterId=?",aa);
网页是用实体body点出2条属性值(不在关联之列)
 java.lang.NumberFormatException: null
我试过 List li=null;
li.add();
报错 java.lang.NumberFormatException: null