|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
今天在使用hibernate的getHibernateTemplate().find查询语句查询Oracle数据库的时候,一致包=报空指针,多方查询无果,前来请教,望各位大佬慷慨解答!
这是查询层:
- public List<ZbxlccontThiINew> LccontZbxData(String transactionno,String policyno) {
- List<ZbxlccontThiINew> list = null;
- if (transactionno != null && policyno!=null){
- list = getHibernateTemplate().find("FROM ZbxlccontThiINew WHERE transactionno = ? and policyno= ?", transactionno, policyno);
- }
- return list;
- }
复制代码
这是调用层:
- public static List<ZbxlcbnfThiGNew> GetZbxlcbnfThiGNews(String polycino){
- ZbxDataDao zbxDataDao = new ZbxDataDao();
- List<ZbxlcbnfThiGNew> list = zbxDataDao.LcbnfZbxData(polycino);
- return list;
- }
复制代码
这是报的异常:
你的.... 在配置Hibernate 是怎么配置的呢? 我怀疑你就是没有注入 HibernateDaoSupport 这个bean
|
|