如果你关联建好了!HQL: select t1.logId,t1.logdate,t1.logcontent,t1.t2.username from LogVO t1可以直接 from LogVO查询出来 LogVO 的时候可以用 它 点你定义的UserVO的变量名再点username就行了!