我查询代码写的多余了
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
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
解决方案 »
- java中取python中存的memcached
- struts2拦截器与ajax请求的问题,急急。。。
- 急救..session注销后..
- 【求助】Java中关于类的调用问题
- Struts2中jsp提交给不同的action怎么做到?
- extjs 保存状态问题
- 用Java axis 部署的web service,其它语言怎么调用啊?
- 一个tomcat 中部署了三个工程后总是OutOfMemoryError: PermGen space
- 一个傻傻的问题:用servlet跨请求调用有状态session bean,不需要把session bean放到httpsession里就可以在请求间保持session bean的状态
- 请问含有import javax.servlet.http.*的bean编译报错怎么办啊?
- 一个有关方法回调结果返回的问题
- Struts2的自定义标签怎么传递对象
说的你可以试试,要不就做个视图更方便!