ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leucht, Axel" <Axel.Leu...@prodv.de>
Subject AW: Need Help in iBatis Configuration
Date Thu, 06 Mar 2008 07:13:26 GMT
Your sqlMap file should read like this

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

 
<Your sql statements>
 
</sqlMap>

whereas your SqlMapconfig should read like
 

<?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>
 
<your sql map files>
 
</sqlMapConfig>

 
I recommend reading the documentation like http://ibatis.apache.org/docs/java/pdf/iBATIS-SqlMaps-2-Tutorial_en.pdf

/Axel 


Mime
View raw message