ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Larry Meadors <larry.mead...@gmail.com>
Subject Re: Insert using a Map
Date Thu, 08 Apr 2010 12:16:03 GMT
#permission.id#

On Thu, Apr 8, 2010 at 1:59 AM, flanagann <flanagann@telecable.es> wrote:
>
> 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
>

---------------------------------------------------------------------
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