[ http://issues.apache.org/jira/browse/IBATISNET-154?page=all ]
Gilles Bayon closed IBATISNET-154:
----------------------------------
Resolution: Won't Fix
Assign To: Gilles Bayon
I don't see how you can do it without use of a stored procedure or with use of
two statements.
iBATIS already allows you to use simply the 2 solutions.
> 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:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira