ibatis-user-cs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Kierstead <br...@fluidmedia.com>
Subject Re: Problem with form IDao Inherited a New DAO Interface
Date Fri, 15 Sep 2006 15:18:44 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=GB2312" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
I've never tried leaving out the assembly name in the implementation
attribute.&nbsp; Does anyone know if this is required?<br>
<br>
I've also never declared the BaseDao in the dao.config. It never get
instantiated directly, so I don't think there is a need.<br>
<br>
Brian<br>
<br>
汪彬彬 wrote:
<blockquote
 cite="midMAILLONGTOP1FVjCRGr00005d93@maillongtop1.LONGTOP.COM"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta content="MSHTML 6.00.3790.1830" name="GENERATOR">
  <font size="2"><font face="宋体">Brian Kierstead</font></font>
  <div>&nbsp;&nbsp;&nbsp; Data Access&nbsp; Interface and Interface's
Implementation in
same Assembly。</div>
  <div>&nbsp;&nbsp;&nbsp; Is not&nbsp;Data Access Interface allowed
have a super interface?</div>
  <div><font face="宋体" size="2">  </font></div>
  <div>&nbsp;</div>
  <div><font face="宋体" size="2">======== 2006-09-15&nbsp;22:59:21&nbsp;
========</font></div>
  <div>&nbsp;</div>
  <div><font size="2">
  <table width="100%">
    <tbody>
      <tr>
        <td width="100%">
        <blockquote
 style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left:
5px; margin-right: 0px;">Do
you need to have the assembly named for the implementation as well?<br>
          <br>
Like this:<br>
          <pre wrap="">      &lt;dao interface="DAL.IDAO.IBaseDao, DAL" 
           implementation="DAL.MapperDAO.BaseMapperDao<i><b>, DAL</b></i>"/&gt;
      
      &lt;dao interface="DAL.IDAO.IFlowDAO, DAL" 
           implementation="DAL.MapperDAO.FlowMapDao<b><i>, DAL</i></b>"/&gt;
</pre>
          <br>
          <br>
Brian<br>
          <br>
汪彬彬 wrote:
          <blockquote
 cite="midMAILLONGTOP1EW6sStw00005d87@maillongtop1.LONGTOP.COM"
 type="cite">
            <pre wrap="">Brian Kierstead
   Thanks for your reply.
   But I aleady add tags in my dao.config file。Like this:
   &lt;daoFactory&gt;
      &lt;dao interface="DAL.IDAO.IBaseDao, DAL" 
           implementation="DAL.MapperDAO.BaseMapperDao"/&gt;
      
      &lt;dao interface="DAL.IDAO.IFlowDAO, DAL" 
           implementation="DAL.MapperDAO.FlowMapDao"/&gt;	
   &lt;/daoFactory&gt;
   	

======= 2006-09-15 22:36:27 =======

  </pre>
            <blockquote type="cite">
              <pre wrap="">You are probably missing the interface and implementation
tags in your
dao.config file for Flow.

Brian

汪彬彬 wrote:
    </pre>
              <blockquote type="cite">
                <pre wrap="">Hi,
  i have two interface:IBaseDao, IFlowDao. IFlowDao inherited from IBaseDao.
  IBaseDao have a method, named QueryForObjectByID(string id). class BaseMapperDao implement
interface IBaseDao and interface IDao。FlowMapDao inherited from BaseMapperDao and implement
IFlowDao。The class
diagram is:

	IBaseDao&lt;|-- IFlowDao
	IBaseDao,IDao &lt;|-- BaseMapperDao
	BaseMapperDao,IFlowDao &lt;|--	FlowMapDao。

But,i have a Exception:
	Method 'QueryForObjectByID' in type 'ProxyInterfaceMapperDAOBaseMapperDao_IBaseDao_IDao_ISerializable'
from assembly 'DynamicAssemblyProxyGen, Version=0.0.0.0, Culture=neutral, PublicKeyToken=f362209d9bee91d8'
does not have an implementation. 

I have write QueryForObjectById in class BaseMapperDao.
I don't know how to resolve the exception.Please Help me ,thanks.
  
      </pre>
              </blockquote>
              <pre wrap="">    </pre>
            </blockquote>
            <pre wrap=""><!----></pre>
          </blockquote>
          <br>
        </blockquote>
        </td>
      </tr>
    </tbody>
  </table>
  </font></div>
</blockquote>
<br>
</body>
</html>


Mime
View raw message