thanks.
indeed it was a namespace problem.
adding this line solved my problem.

but now i get another error when calling a dao method:


                OdmLinkExample ole = new OdmLinkExample();
                ole.setWorkflowId(new BigDecimal(1));

ole.setWorkflowId_Indicator(OdmLinkExample.EXAMPLE_EQUALS);
                //ole.setActionId(new BigDecimal(12));

//ole.setActionId_Indicator(OdmLinkExample.EXAMPLE_EQUALS);

                System.out.println("select:");

                // THIS LINE CAUSES THE ERROR
                linkDao.selectByExample(ole);



Exception in thread "main" java.lang.NullPointerException
at com.ibatis.dao.engine.impl.StandardDaoManager.getTransaction(StandardDaoManager.java:108) at com.ibatis.dao.client.template.SqlMapDaoTemplate.getSqlMapExecutor(SqlMapDaoTemplate.java:60) at com.ibatis.dao.client.template.SqlMapDaoTemplate.queryForList(SqlMapDaoTemplate.java:203) at org.dea.odm.model.dao.test.dao.OdmLinkDAOImpl.selectByExample(OdmLinkDAOImpl.java:59) at org.dea.odm.model.dao.test.dao.OdmLinkDAOImpl.selectByExample(OdmLinkDAOImpl.java:71) at org.dea.odm.model.dao.test.OdmLinkDAOImplTest.test(OdmLinkDAOImplTest.java:66) at org.dea.odm.model.dao.test.OdmLinkDAOImplTest.main(OdmLinkDAOImplTest.java:22)



in this method OdmLinkDAOImpl.java:

   /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table c108272dev.ODM_LINK
     *
     * @abatorgenerated Mon Jul 03 16:07:30 CEST 2006
     */
    public List selectByExample(OdmLinkExample example) {
        return selectByExample(example, null); // HERE...
    }



On Mon, 3 Jul 2006, Graeme J Sweeney wrote:

On Mon, 3 Jul 2006, Thomas Karl Schwaerzler wrote:

com.ibatis.common.exception.NestedRuntimeException: Could not find SQL statement to include with refid 'user_ODM_LINK.abatorgenerated_Example_Where_Clause'

Is it a namespace issue?

<snip/>

here my SqlMapConfigAbator.xml


<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE sqlMapConfig
  PUBLIC "-//iBATIS.com//DTD SQL Map Config 2.0//EN"
  "http://www.ibatis.com/dtd/sql-map-config-2.dtd";>
<!-- Always ensure to use the correct XML header as above! -->
<sqlMapConfig>

Add this:

 <settings useStatementNamespaces="true"/>

<sqlMap resource="org/dea/odm/model/dao/test/sqlmap/c108272dev_ODM_LINK_SqlMap.xml" />
</sqlMapConfig>

--
Graeme -



thanks
t.

Reply via email to