ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From foobar31415 <dfnsonfsdu...@gmx.de>
Subject iBATIS iterate over parameter java.util.Hashmap
Date Wed, 09 Sep 2009 13:15:01 GMT

Hello forum,

I'd like to do the following: I have a java.util.HashMap  on Java 1.4 which
maps IDs (type Integer) to Strings. I'd like to create a SQL statement like

INSERT INTO foo
   SELECT #id#, #str#
   UNION ALL
   SELECT #id#, #str#
   UNION ALL
   SELECT #id#, #str#
[...]

i.e., I'd like to use a <iterate> over the java.util.HashMap. My tries were
unsuccessful so far, can someone give me a pointer?

Thanks in advance,
Best Regards,
Johannes
-- 
View this message in context: http://www.nabble.com/iBATIS-iterate-over-parameter-java.util.Hashmap-tp25364744p25364744.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


Mime
View raw message