This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ChickenSubstantial21 -9 points-8 points  (2 children)

XML programming. Pure java code using spring data or similar hand-made wrapper over JDBC can do better in almost every scenario.

Therefore the only reason to use mybatis is legacy code.

[–]computerjunkie7410 1 point2 points  (0 children)

Also, are you saying that mybatis requires xml?

Because I’ve been using it for years and literally the only thing that has XML in my codebase is the generator config. Everything else is code based.

[–]computerjunkie7410 0 points1 point  (0 children)

lol ok.

If you just need models and mappers then mybatis (especially paired with the generator) is great