3 ms·
MyBatis Does MyBatis have an API similar to what I outlined above? Because the page that you link to shows a horror that I can't even begin to describe: <s
by moe 12y ago
MyBatis
Does MyBatis have an API similar to what I outlined above?
Because the page that you link to shows a horror that I can't even begin to describe:
<select id="findActiveBlogWithTitleLike"
resultType="Blog">
SELECT * FROM BLOG
WHERE state = ‘ACTIVE’
<if test="title != null">
AND title like #{title}
</if>
</select>
SQL mixed with proprietary XML soup?
Talk about combining the worst from all worlds...
- bigpeopleareold 12y agoGet rid of the XML and you have a good start, I'd say.