You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by Eugeny N Dzhurinsky <eu...@jdevelop.com> on 2005/08/02 09:45:32 UTC

dynamic where clause with mapping

Hello!

Is there any way to pass dynamic where clause portion to the iBATIS mapper?
for example:

select name,description from sometable where $clause$

if the user provided the just name pattern, the clause will look like

name like '%#name#$'

if the user will provide the both name and description patterns

name like '%#name#%' or description like '%#description#%'

The second question - how to pass dynamic mapping parameters?

-- 
Eugene N Dzhurinsky

Re: dynamic where clause with mapping

Posted by Eugeny N Dzhurinsky <eu...@jdevelop.com>.
Sorry to all, I've found it in the developers guide. Really nice, iBATIS rocks
=)

-- 
Eugene N Dzhurinsky