oohave / rapid-framework

Automatically exported from code.google.com/p/rapid-framework
0 stars 0 forks source link

ibatis sqlMap文件模板错误 #35

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
我比较喜欢使用IBatis来做dao层,但是在使用的初期,程序就��
�不能运行,后发现在Template
中的ibatis sqlMap模板文件中 insert update 
delete等,都没有独立名字,所以导致不能
正确读取sqlMap文件!解决方法,修改这个sqlmap模板文件!

另有时候我们并不会使用web的view层,因为只是做个模块加载�
��用,建议添加改功能。

Original issue reported on code.google.com by Daniel.s...@gmail.com on 22 Jan 2010 at 1:30

GoogleCodeExporter commented 8 years ago
ibatis2 or ibatis3?

如果是ibatis2,已经指定了namespace,不需要再使用独立的名字

Original comment by bad...@gmail.com on 22 Jan 2010 at 3:09

GoogleCodeExporter commented 8 years ago
ibatis2 
中的模版!我确实看到每个sqlMap中都定义了namespace,但是在��
�行的时候,似乎这个
namespace不起作用!不知道是我配置上是否有误,但是如果改��
�独立的名字,则可以正常运行。

Original comment by Daniel.s...@gmail.com on 23 Jan 2010 at 12:50

GoogleCodeExporter commented 8 years ago
thx badqiu! 我发现了 
是我的配置文件被同事修改了,所以我得到的代码在运行时��
�报错!另发现在
Ibatis2中的 BaseIbatisDao中 findAll() 
没有实际被定义,请问是为何?

Original comment by Daniel.s...@gmail.com on 23 Jan 2010 at 1:30

GoogleCodeExporter commented 8 years ago
兼容EntityDao接口使用, 
因为rapid需要使用该接口以做到dao层可以切换其它实现

Original comment by bad...@gmail.com on 23 Jan 2010 at 2:25

GoogleCodeExporter commented 8 years ago
明白了!谢谢 badqiu

Original comment by Daniel.s...@gmail.com on 23 Jan 2010 at 2:55