You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by Hendry <he...@elasitas.com> on 2006/05/01 11:23:43 UTC
about dao implementation
Hi all,
Right now I'm trying to use dao framework and sql map for my
application, before I was using only sql map. But I got this error,
"com.ibatis.dao.client.DaoException: There is no DAO implementation
found for class com.abc.dao.sqlmap.SqlMapDao in any context. If you've
registered multiple implementations of this DAO, you must specify the
Context ID for the DAO implementationyou're looking for using the
getDao(Class iface, String contextId) method."
dao.xml that i used :
<!DOCTYPE daoConfig PUBLIC "-//ibatis.apache.org//DTD DAO Configuration
2.0//EN" "http://ibatis.apache.org/dtd/dao-2.dtd">
<daoConfig>
<properties resource="conf/db.properties"/>
<!-- JDBC DAO Configuration -->
...
<!-- SQL Maps DAO Configuration -->
<context>
<transactionManager type="SQLMAP">
<property name="SqlMapConfigResource"
value="conf/SqlMapConfig.xml"/>
</transactionManager>
<dao interface="com.abc.dao.ContentOrderDao"
implementation="com.abc.dao.sqlmap.SqlMapDao"/>
</context>
</daoConfig>
--
Regards,
Hendry