I have three tables:
Is it possible to set the join in the xml configuration, and let mybatis to generate the classes and methods with the join?
Thanks.
MyBatis Generator does not generate code for joins.
However, the "MyBatis Dynamic SQL" library has support for joins. You could use MyBatis Generator to generate the basic CRUD operations for the tables, then add the joins yourself. Just set <context targetRuntime="MyBatis3DynamicSql">
There is information on this page regarding joins in the library: http://www.mybatis.org/mybatis-dynamic-sql/docs/select.html