如何使用SQL Builder类为级联属性分配值

时间:2019-05-16 12:34:47

标签: java mybatis spring-mybatis

示例

class people{
 private int id;
 private String name;
 private int age;
 private Pet pet;
}

class Pet{
 private String petName;
 private String color;
}

select id,name,age,petName,color 
from people,pet 
where 
pet.master=people.id

如何将petNamecolor分配给人们的宠物财产

0 个答案:

没有答案