ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhaa <b...@yandex.ru>
Subject iBATOR does not generate without optional an element <daoGenerator>
Date Thu, 20 Aug 2009 07:32:57 GMT


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

Unexpected error while running iBator.


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"
      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"/>

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

Explain please why so occurs.


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-unsubscribe@ibatis.apache.org
For additional commands, e-mail: user-java-help@ibatis.apache.org

View raw message