Could not find SQL statement to include with refid 'employee.abatorgenerated_Exa

Spring2.5 + IBatis (abator code generator)  throw exception:

 

Could not find SQL statement to include with refid 'employee.abatorgenerated_Example_Where_Clause'

 

 

=====================================================

 

 

process method :in SqlMapConfig.xml  add <settings useStatementNamespaces="true" /> code

 

 

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE sqlMapConfig PUBLIC "-//ibatis.apache.org//DTD SQL Map Config 2.0//EN"     
    "http://ibatis.apache.org/dtd/sql-map-config-2.dtd">

 

 

<sqlMapConfig>
    <settings useStatementNamespaces="true" />

    .....

    .....

</sqlMapConfig>

 

 

reference info :

http://blog.gmane.org/gmane.comp.java.ibatisdb.user/month=20060701/page=2

 

你可能感兴趣的:(apache,sql,xml,ibatis,Blog)