paip.hql的调试故障排查流程总结

paip.hql的调试故障排查流程总结

环境.myeclipse7.0 1

Hql的调试工具myeclipxe默认工具.../Hibernate8IDE 1

故障的排除方法overview 1

Hql调试流程 1

问题的解决Session factory not created for configuration 3

环境.myeclipse7.0

Hql的调试工具myeclipxe默认工具.../Hibernate8IDE

Hibernate8IDE是一个用Swing写的图形调试工具,很棒很方便,是开发Hibernate的必备工具之一。 

故障的排除方法overview

1.查看日志

2.对比配置文件。

3.other

作者 老哇的爪子 Attilax 艾龙,  EMAIL:1466519819@qq.com
转载请注明来源: http://blog.csdn.net/attilax

Hql调试流程

项目>>右键>>myeclipse> open hql editor...

这个表明配置ok..要是不ok,,双箭头图标刷新一哈

from  AwardWeixin   能自动完成了...

Hb dyna query trans 视图显示..如下..

SQL #0 types:com.focustar.entity.AwardWeixin

-----------------

select

  awardweixi0_.id as id415_,

  awardweixi0_.activityId as activityId415_,

  awardweixi0_.awardId as awardId415_,

  awardweixi0_.openId as openId415_,

  awardweixi0_.awardCount as awardCount415_,

  awardweixi0_.awardTime as awardTime415_,

  awardweixi0_.createTime as createTime415_ 

 from

  t_mb_awardweixin awardweixi0_

问题的解决Session factory not created for configuration

两个项目,一个能正常的使用了.一个不能...

网上查看说十hql hibernate tool子能jdk1.5运行... 看累挂两个项目,都是1.6.complile,不个这个排除兰...

估计十配置文件的问题..异常项目不能显示hb配置文件的数据库联系参数在myeclipsehb配置文件设计器...跟个正常的配置文件比较,多孪个  hibernate前缀... 

Copy  E:workspaceGialenWeiXinsrchibernate.cfg4hqlTest.xml , 不个参数更改为connection.username,则十能myeclipse显示兰...

 

配置调试cfg 文件到个这个文件:::project>>rit key>>peropery >>myeclipse>>hibernate>>active cfg file >>browser,,不能更改..bug,,只好手动更改.myhibernatedata文件,configFile=/GialenWeiXin/src/hibernate.cfg4hqlTest.xml   ,还有个参数baseDaoClass=留空也能了....实际上十有basedao...

 

就是还不能调试...不个配置文件所有的更改,删除数据库连接池配置..只数据库配置和mapper配置..,ok...

 

 

袖管hql编辑 from xx, hb dyna query transor 这个视图显示,,,org.hibernate.hql.ast.QuerySyntaxException: xx is not mapped [from xx],,表明ok兰...

 

参考

myeclipse8.5hql文件连接查询报错的解决办法A session factory for this configuration - sinlff的专栏 博客频道 - CSDN.NET.htm

eclipse插件hibernate tools无法创建sessionFactory_幽草_新浪博客.htm

我要啦免费统计
原文地址:https://www.cnblogs.com/attilax/p/5963989.html