I've been on projects wherein Mybatis would've been a more optimal fit, but the use of XML is a strong deterrent. I have a fork of this that allows the overwhelming bulk of a MyBatis project to use zero XML and all YAML. The
Advantages of this are:
* No escaping of SQL when special characters are involved. For example, SELECT * from Account where balance > 50 rather than SELECT * from Account where balance > 50;
* Easier to fit on one line or copy/paste from a SQL engine
* Adaptable to SpringBoot application.properties format.
* Indention can be more natural rather than indenting around XML elements, or keeping an ugly XML formatting just so the SQL can be better formatted.
I doubt I'm the first to think of this, but in case I am, attaching is a fork of the repo as a starting attempt. Please let me know what you think.
https://github.com/bpracht/mybatis-3
Regards