You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ibatis.apache.org by "Ron Grabowski (JIRA)" <ib...@incubator.apache.org> on 2005/08/16 20:44:55 UTC

[jira] Commented: (IBATISNET-3) Dyna SQL: Support for #value# parameter

    [ http://issues.apache.org/jira/browse/IBATISNET-3?page=comments#action_12318920 ] 

Ron Grabowski commented on IBATISNET-3:
---------------------------------------

Are you wanting to do this:

 Widget widget = new Widget();
 widget.Id = 1234;

 ExecuteQueryForObject("GetWidget", widget);

 <select id="GetWidget">
  SELECT * FROM Widget WHERE Id = #value.Id#
 </select>

I think that's confusing syntax.

This issue is over 10 months old. It may have been resolved...

> Dyna SQL: Support for #value# parameter
> ---------------------------------------
>
>          Key: IBATISNET-3
>          URL: http://issues.apache.org/jira/browse/IBATISNET-3
>      Project: iBatis for .NET
>         Type: New Feature
>     Reporter: Ted Husted
>     Priority: Minor

>
> A common usecase for is return all records if a
> parameter is missing or null and a selected set if a
> parameter is missing. Conventional iBATIS queries
> support use of a #value# parameter that can be used
> with value objects, like int and string. But thie
> #value# parameter is not supported by Dynmaic SQL,
> which expects a rich object. The workaround is to
> create a "NameValue" object to pass, but being able to
> use value objects with the very common one-parameter
> query would be useful. 

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