Mybatis для автоматического отображения для поддержки точки - PullRequest
0 голосов
/ 18 июня 2020
 <select id="findAll" resultType="com.pojo.Pod">

select 
 a.id,
 a.name,
 a.create_date,
 a.user_name as 'user.name'
 a.user_phone as 'user.phone'
from t_pod a

</select>

конфигурация

mybatis.configuration.map-underscore-to-camel-case = true

Я хочу, чтобы mybatis поддерживал автоматическое сопоставление точек.

class Pod {
  int id;
  String name;
  User user;
}

...