Hi,

In <ibatorContext> element, child element <daoGenerator> is optional.
Why if to do Generate iBATIS Artifacts without this element, there is an
exception:

Reason:
Unexpected error while running iBator.

java.lang.NullPointerExeption

Here a file ibatorConfig.xml:

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE ibatorConfiguration PUBLIC "-//Apache Software Foundation//DTD
Apache iBATIS Ibator Configuration 1.0//EN"
  "http://ibatis.apache.org/dtd/ibator-config_1_0.dtd"; >
<ibatorConfiguration >
  <classPathEntry location="/AccGuvd/lib/ojdbc14.jar" />
  <ibatorContext id="OracleTables" targetRuntime="Ibatis2Java5">
    <jdbcConnection driverClass="oracle.jdbc.driver.OracleDriver"
      connectionURL="jdbc:oracle:thin:@ws-krylov:1521:GUVD"
      userId="guvd_user" password="sys" />
    <javaModelGenerator targetPackage="com.rns.guvd.model"
      targetProject="AccGuvd/src" />
    <sqlMapGenerator targetPackage="com.rns.guvd.xml"
      targetProject="AccGuvd/src" />
    <!-- daoGenerator type="GENERIC-CI" targetPackage="com.rns.guvd.dao"
      targetProject="AccGuvd\src" / -->
    <table tableName="account_guvd">
      <property name="useActualColumnNames" value="true"/>
    </table>
  </ibatorContext>
</ibatorConfiguration>

When this child element <daoGenerator> is present in element
<ibatorConfiguration>, generation is successful.

Explain please why so occurs.

Alexander

-- 
View this message in context: 
http://www.nabble.com/iBATOR-does-not-generate-without-optional-an-element-%3CdaoGenerator%3E-tp25057307p25057307.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org
For additional commands, e-mail: user-java-h...@ibatis.apache.org

Reply via email to