You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In current feature, it does not support for appending and trimming SQL key-word(e.g. WHERE, AND, SET) like as <where> and <set> provided by xml based scripting language.
So, we need to add the no-dynamic phrase (e.g. WHERE 1 = 1, SET id = id, etc ...) before dynamic parts. I think it is easy writing but it is troublesome rule.
IElementModelProcessor is valid to reproduce the function of the where tag of MyBatis.
In IElementModelProcessor, it is possible to freely acquire / change the elements in the tag using IModel.
However, it is important to note that evaluation of the template is performed after all processors are executed, so it can not be determined from the evaluation result SQL whether or not the where clause is required.
kazuki43zoo
changed the title
Investigate a way for adding dialect like as 'th:where' and 'th:set' tag
Investigate a way for adding dialect like as 'mybatis:where' and 'mybatis:set' tag
Nov 29, 2018
In current feature, it does not support for appending and trimming SQL key-word(e.g. WHERE, AND, SET) like as
<where>
and<set>
provided by xml based scripting language.So, we need to add the no-dynamic phrase (e.g.
WHERE 1 = 1
,SET id = id
, etc ...) before dynamic parts. I think it is easy writing but it is troublesome rule.I hope to be enabled to write as follow:
The text was updated successfully, but these errors were encountered: