hibernate多表关联查询

情景是这样的 有3张表  教师表 teacher; 学历表edutation(外键teacher_id是教师表的id)  ;  文章表article(外键teacher_id是教师表的id)  
现在我如何通过 文章标题title,文章内容content,第一学历first_edutation,第二学历last_edutation等信息确定教师或者教师列表(查询条件是随机的任意几个)

试下这个.欢迎指导
select t.teacher_id from teacher t where t.teacher_id in
(
(select e.teacher_id from edutation e where e.first_edutation='1' and e.last_edutation='2 )
union
(select a.teacher_id from article a where a.title='title' and a.content='content')
)

可以用union 连接查询结果集,文章内容应该不适合当成查询条件

你是说这里面的映射关系不知道怎么查询吗,其实既然你两张表都有teaccherid这个外键,你是想做一个筛选吗?当你有任意一个条件的时候,
就可以查询到对应的theacher对象了,不知道我说的对不对