ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Kratz" <jason.kr...@firm58.com>
Subject RE: Need Help in iBatis Configuration
Date Thu, 06 Mar 2008 14:24:51 GMT
Happens to all of us Tony ;)

 

Jason

 

From: Angso, Tony [mailto:Tony_Angso@medco.com] 
Sent: Thursday, March 06, 2008 7:44 AM
To: user-java@ibatis.apache.org
Subject: RE: Need Help in iBatis Configuration

 

I had it working last night and it is exactly what you are said... I missed
the DocType in my SQLMap.xml... I have the book iBatis in Action and the
solution is "staring" at me right in front of my face and I missed it ...
;-(

 

Thanks to all that reply to my post...

 

Tony

 

-----Original Message-----
From: Leucht, Axel [mailto:Axel.Leucht@prodv.de] 
Sent: Thursday, March 06, 2008 2:13 AM
To: user-java@ibatis.apache.org
Subject: AW: Need Help in iBatis Configuration

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 

  _____  

This e-mail message and any attachments contain confidential information
from Medco. If you are not the intended recipient, you are hereby notified
that disclosure, printing, copying, distribution, or the taking of any
action in reliance on the contents of this electronic information is
strictly prohibited. If you have received this e-mail message in error,
please immediately notify the sender by reply message and then delete the
electronic message and any attachments. 


Mime
View raw message