Re: table name as parameter

2010-02-08 Thread Jeff Butler
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 >

Re: table name as parameter

2010-02-08 Thread Tom Carchrae
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

Re: table name as parameter

2010-02-08 Thread Tom Carchrae
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

Re: table name as parameter

2010-02-08 Thread Jeff Butler
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

Re: table name as parameter

2010-02-08 Thread Larry Meadors
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

Re: table name as parameter

2010-02-08 Thread Tom Carchrae
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

Re: table name as parameter

2010-02-08 Thread Nathan Maves
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

Re: table name as parameter

2010-02-08 Thread Daryl Stultz
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

Re: table name as parameter

2010-02-08 Thread Tom Carchrae
, 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

Re: table name as parameter

2010-02-08 Thread Daryl Stultz
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

table name as parameter

2010-02-08 Thread Tom Carchrae
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