此回复为自动发出,仅用于显示而已,并无任何其他特殊作用
楼主【qilili123】截止到2008-07-10 18:28:15的历史汇总数据(不包括此帖):
发帖的总数量:1 发帖的总分数:20 每贴平均分数:20
回帖的总数量:1 得分贴总数量:0 回帖的得分率:0%
结贴的总数量:0 结贴的总分数:0
无满意结贴数:0 无满意结贴分:0
未结的帖子数:1 未结的总分数:20
结贴的百分比:0.00 % 结分的百分比:0.00 %
无满意结贴率:---------------------无满意结分率:---------------------
如何结贴请参考这里:http://topic.csdn.net/u/20080501/09/ef7ba1b3-6466-49f6-9d92-36fe6d471dd1.html
楼主【qilili123】截止到2008-07-10 18:28:15的历史汇总数据(不包括此帖):
发帖的总数量:1 发帖的总分数:20 每贴平均分数:20
回帖的总数量:1 得分贴总数量:0 回帖的得分率:0%
结贴的总数量:0 结贴的总分数:0
无满意结贴数:0 无满意结贴分:0
未结的帖子数:1 未结的总分数:20
结贴的百分比:0.00 % 结分的百分比:0.00 %
无满意结贴率:---------------------无满意结分率:---------------------
如何结贴请参考这里:http://topic.csdn.net/u/20080501/09/ef7ba1b3-6466-49f6-9d92-36fe6d471dd1.html
解决方案 »
- java将多段音频合并的代码
- 急求MyEclipse_6_0_1GA_E3_3_1_Installer.bin 文件
- struts2 select标签中headerKey 与 headerValue后台获取值问题
- S2SH整合错误请指教
- struts2.1.8文件上传大小校验!
- 请问如何通过IE访问CXF发布的web services
- struts中用一个action还是多个?
- displaytag中如何加入radio或checkbox
- weblogic建不了连接池,急急求助
- 哪位高手做过考勤系统,给个提示!
- 报错:Parsing of JSP File '/Register.jsp' failed:
- jsp写入xml问题
最好先把 拼接的hql 输出来看下。
public List<StaffBasicInfo> findTwoCompound(String first, String second,
String third, String firstResult, String secondResult,
String thirdResult) {
Session session = null;
Query query;
String selectResult="from StaffBasicInfo where "+first+" = "+firstResult+" and "+second+" = "+
secondResult+" and "+third+" = "+thirdResult;
query =session.createQuery(selectResult);
return query.list();
}
这是我的代码,staffBasicInfo.java是中我定义了员工的基本信息,生成员工基本信息表,我要查询的字段就是从这个表中选择的
你应该吧报错给人家看一下吧
错误提示如下
java.lang.NullPointerException
at cn.com.xinhuadu.gaea.HRMS.personnelManagement.dao.hibernate.StaffBasicInfoDaoHibernate.findTwoCompound(StaffBasicInfoDaoHibernate.java:248)
at cn.com.xinhuadu.gaea.personnelManagement.dao.StaffBasicInfoDaoTest.testTwoCom(StaffBasicInfoDaoTest.java:56)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:164)
at junit.framework.TestCase.runBare(TestCase.java:130)
at org.springframework.test.ConditionalTestCase.runBare(ConditionalTestCase.java:69)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)