You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@SearchBean(tables="user")
public class User {
private Long id;
private String name;
// 省略其它...
}
@SearchBean(tables="profile")
public class Profile {
private Long userId;
private String address;
// 省略其它...
}
@SearchBean(tables="user u, profile p", joinCond="u.id = p.user_id")
public class UserJoinProfileDO {
// todo 想办法声明joinCond的模版变量的传入
@DbFiled(type=DbType.ALIAS, value="u")
private User user;
@DbFiled(type=DbType.ALIAS, value="p")
private Profile profile;
// 省略其它...
}
实体类内 支持嵌套 对象
用法1:内嵌对象
用法2:内嵌列表
The text was updated successfully, but these errors were encountered: