ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From flanagann <flanag...@telecable.es>
Subject Insert using a Map
Date Thu, 08 Apr 2010 07:59:16 GMT

Hello, hope you can help me with this issue.

I'm trying to do an INSERT operation as follows:

<insert 	id = "permissionsGroup.addPermission" parameterClass =
"java.util.Map">	
	INSERT INTO FOO_TABLE (ID1, ID2) VALUES 
	(#permissionsGroupId#,	#permission#.id)			
</insert>

The map contains two pairs <key, value>:
- <"permissionsGroupId", Integer>
- <"permission", Permission>
where Permission is a not primitive Object.

What I want to do is to insert the parameter 'id' from the object
Permission. How can I get this working?

Thanks in advance!
-- 
View this message in context: http://old.nabble.com/Insert-using-a-Map-tp28175373p28175373.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