You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by Thomas Karl Schwaerzler <Th...@student.uibk.ac.at> on 2006/07/01 13:05:59 UTC

cant get abator to start

hi out there,

we re just new users of ibatis. until now we used to bind ibatis into our 
servlet appliction directly and it works great.

now since we know that there exists abator we d like to create sql-maps 
automatically.

building the maps, beans and model classes  works great, too, BUT....
we could not find out how to use these automatically generated classes.

our problem is that we could not find out where we get the (supposedly) needed 
sqlMapClient for any *DAOImpl.java classes.
another question is:

every table has its map, but shouldn there be a xml file that loads all these 
maps.

shouldnt there be generated a sqlmap config file that identifies which xml map 
files should be loaded into the sqlmapclient.

containing something like this:
   <sqlMap resource="org/dea/odm/model/dao/test/sqlmap/c108272dev_ODM_ATTACHMENT_SqlMap.xml" />
   <sqlMap resource="org/dea/odm/model/dao/test/sqlmap/c108272dev_ODM_EMPLOYEE_SqlMap.xml" />
   <sqlMap resource="org/dea/odm/model/dao/test/sqlmap/c108272dev_ODM_LINK_SqlMap.xml" />


or do we have to write this xml file by hand??

thanks in advance

tom + clemens + andy :)

Re: cant get abator to start

Posted by Jeff Butler <je...@gmail.com>.
You do have to update the sqlmapconfig.xml file manually.  And also the
dao.xml file if you are generating IBATIS DAOs.

I've been working on some better documentation for Abator - you can check it
out here:

http://svn.apache.org/repos/asf/ibatis/trunk/java/mapper/mapper2/tools/abator/core/htmldoc/index.html

There is a page specifically about what you have to do after running
abator.  This new documentation references some things that aren't released
yet, but most of the information applies to the current release too.

Jeff Butler


On 7/1/06, Thomas Karl Schwaerzler <Th...@student.uibk.ac.at>
wrote:
>
>
> hi out there,
>
> we re just new users of ibatis. until now we used to bind ibatis into our
> servlet appliction directly and it works great.
>
> now since we know that there exists abator we d like to create sql-maps
> automatically.
>
> building the maps, beans and model classes  works great, too, BUT....
> we could not find out how to use these automatically generated classes.
>
> our problem is that we could not find out where we get the (supposedly)
> needed
> sqlMapClient for any *DAOImpl.java classes.
> another question is:
>
> every table has its map, but shouldn there be a xml file that loads all
> these
> maps.
>
> shouldnt there be generated a sqlmap config file that identifies which xml
> map
> files should be loaded into the sqlmapclient.
>
> containing something like this:
>   <sqlMap
> resource="org/dea/odm/model/dao/test/sqlmap/c108272dev_ODM_ATTACHMENT_SqlMap.xml"
> />
>   <sqlMap
> resource="org/dea/odm/model/dao/test/sqlmap/c108272dev_ODM_EMPLOYEE_SqlMap.xml"
> />
>   <sqlMap
> resource="org/dea/odm/model/dao/test/sqlmap/c108272dev_ODM_LINK_SqlMap.xml"
> />
>
>
> or do we have to write this xml file by hand??
>
> thanks in advance
>
> tom + clemens + andy :)
>