Top "Mybatis" questions

MyBatis is a framework for mapping objects to relational databases with an emphasis on high performance and simplicity.

Why must the interface and xml mapper file be in same package and have the same name?

Today I was preparing an example using Spring Boot and using MyBatis for the data access communication next to Spring-MyBatis. …

java spring spring-boot mybatis spring-mybatis
When to use $ vs #?

I am confused about using $ vs #. I didn't found any guides for this. I used them as name = #{name}, name …

mybatis ibatis
MyBatis "or" criteria

I want to create a query with MyBatis, which will produce something like: SELECT first_field, second_filed, third_field …

java mybatis
MyBatis 3.0.5 and mappers loading problem

I'm using MyBatis 3.0.5 and I have problems about the loading of mappers as resources. I'm on Windows 7 64, I use Eclipse …

java ibatis mybatis
How to print the sql query executing in mybatis mapper xml to the console

Suppose I am executing below query which is there in my mapper xml: <select id="getData" parameterType="java.util.…

java jakarta-ee orm mybatis ibatis
MyBatis: how to bypass a local cache and directly hit the DB on specific select

I use MyBatis 3.1. I have two use cases when I need to bypass MyBatis local cache and directly hit the …

java spring mybatis
What are the return values for the mybatis update functions?

We're using MyBatis 3.0.6 to work with our database. The MyBatis generator will automatically generate 4 updateByXYZ() methods. Each of these methods …

java mybatis mybatis-generator
What is the proper syntax for the Less Than/Equal operator in MyBatis 3?

How to use less than equal in MyBatis 3. <select id="getLog" resultMap="BaseResultMap" parameterType="java.lang.String"> SELECT * …

mybatis
Mybatis XML vs Annotation

I have read the book and documentation about Mybatis, both XML and Annotation does what I want, but from myBatis …

java mybatis ibatis
Using enum parameters in myBatis dynamic SQL

How to do dynamic SQL in myBatis 3.1.1 based on an enum constant parameter?

string enums ibatis dynamic-sql mybatis