|
Hello, I have to map in a dynamic statemet this sql: SELECT pgmr.a.*,company#)firstname#)lastname#)where company, firstname
and lastname can be null or not independentlythe only solution I've found 'till now is this: <select id="searchClient" resultMap="clientResult"
parameterClass="map">company">company#)company">
OR </isNotEmpty>firstname">firstname) like
lower(#nm_map.firstname#)lastname">firstname">
AND </isNotEmpty>lastname) like
lower(#nm_map.lastname#)I've wrapped firstname and lastname
in nm_map, a submap of parameter map.Well, I think this is not the best&simplest solution but I was not able to find an alternative. Can you help me? --
|
<<inline: trust.gif>>
<<inline: thunderbird_small.png>>

