ibatis-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ron Grabowski (JIRA)" <ibatis-...@incubator.apache.org>
Subject [jira] Commented: (IBATISNET-154) Support for SelectKey to use a complex resultMap
Date Tue, 25 Apr 2006 21:16:24 GMT
    [ http://issues.apache.org/jira/browse/IBATISNET-154?page=comments#action_12376343 ] 

Ron Grabowski commented on IBATISNET-154:

I think the entire patch would be just two lines of code:

 selectKey.ResultMapName = NodeUtils.GetStringAttribute(prop, "resultMap");
 selectKey.RemapResults = NodeUtils.GetBooleanAttribute(prop, "remapResults", false); 

Sometimes a key and a Date column is populated when an INSERT occurs. Adding support for a
resultMap on the selectKey would allow the user to get back that information as an object.


> Support for SelectKey to use a complex resultMap
> ------------------------------------------------
>          Key: IBATISNET-154
>          URL: http://issues.apache.org/jira/browse/IBATISNET-154
>      Project: iBatis for .NET
>         Type: Improvement

>   Components: DataMapper
>     Versions: DataMapper 1.3
>  Environment: Windows XP64, VSNET 2005
>     Reporter: Mario Alberto Chavez
>     Assignee: Gilles Bayon
>     Priority: Minor

> The insert tag support the use of SelectKey to return the key generated at server side
for that specific record, but it's limited to only return a scalar value, there are time that
when a record is inserted more that the key is calculated at server side, and those fields
have to come back to the object, the only work around right now is to insert the record and
after that have a select by id action in order to get new generated fields.
> I will be useful if selectkey can support a complex - not scalar - resultmap to address
this case in one declaration.
> Thanks

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message