如题:假如我有个对象Course,Course有个一对一的关联对象Media,Media有个一对一的关联对象Teacher,现在我要查Course分页列表,有什么好的办法直接查出关联对象?
course对象:
@Column("media_id")
@ColDefine(type = ColType.INT ,width = 11 ,notNull = false )
@Comment("媒体资源ID")
private int mediaId;
@One(field = "mediaId")
private Media media;
media对象:
@Column("teacher_id")
@ColDefine(type = ColType.INT ,width = 10 ,notNull = true )
@Comment("")
private int teacherId;
@One(field = "teacherId")
private Teacher teacher;