e parameter name and the select statement. (ie, none, or
> as Larry pointed out, 'value' is a default mapping name)
>
> Thanks for the tip. :)
>
> Tom
> --
> View this message in context:
> http://old.nabble.com/table-name-as-parameter-tp27505213p27507890.html
>
e)
Thanks for the tip. :)
Tom
--
View this message in context:
http://old.nabble.com/table-name-as-parameter-tp27505213p27507890.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
-
To unsubsc
Larry Meadors wrote:
>
> Try this:
>
> select * from ${value}
>
Excellent! It works. Thank you so much. I'm guessing it somehow got
confused and thought I was passing it some OGNL.
Tom
--
View this message in context:
http://old.nabble.com/tab
ooking so good. Figuring out what is going on
> inside the OgnlParser is, well, a touch intimidating.
>
> Tom
>
>
> --
> View this message in context:
> http://old.nabble.com/table-name-as-parameter-tp27505213p27507728.html
> Sent from the iBATIS - User - Java mailing list arc
7;s all looking so good. Figuring out what is going on
> inside the OgnlParser is, well, a touch intimidating.
>
> Tom
>
>
> --
> View this message in context:
> http://old.nabble.com/table-name-as-parameter-tp27
ng inside
TextSqlNode.java:38
Object value = Ognl.getValue(content, context.getBindings());
Up to this point, it's all looking so good. Figuring out what is going on
inside the OgnlParser is, well, a touch intimidating.
Tom
--
View this message in context:
http://old.nabble.com
t;
> My mapper interface is:
>
> List selectAllFromTable(RowBounds rowBounds, String tableName);
>
> And I am calling it with:
>
> String tableName = "Table";
> List rows = mapper.selectAllFromTable(rowBounds, tableName);
>
> Any further
On Mon, Feb 8, 2010 at 3:05 PM, Tom Carchrae wrote:
>
> Thank you for the fast reply. I'm now onto a new error:
>
> I have about 6 hours' experience with iBATIS. I just happened to know that
one.
>
>
> My mapper interface is:
>
> List selectAllFromTable(RowBounds rowBounds, String
> ta
, tableName);
Any further ideas?
Thanks,
Tom
--
View this message in context:
http://old.nabble.com/table-name-as-parameter-tp27505213p27505434.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
-
To unsubscri
On Mon, Feb 8, 2010 at 2:47 PM, Tom Carchrae wrote:
>
> I am trying to load a table using a parameter to specify the table name:
>
> resultType="hashmap">
>select * from #{id}
>
>
>
select * from ${id}
Daryl Stultz
_
6 Degrees Software and Consulti
advance,
Tom
--
View this message in context:
http://old.nabble.com/table-name-as-parameter-tp27505213p27505213.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: user-java
11 matches
Mail list logo