ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eugeny N Dzhurinsky <eugeny...@jdevelop.com>
Subject dynamic where clause with mapping
Date Tue, 02 Aug 2005 07:45:32 GMT

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

View raw message