Hibernate:
select
employees0_.department_did as departme9_0_1_,
employees0_.eid as eid1_1_1_,
employees0_.eid as eid1_1_0_,
employees0_.birthday as birthday2_1_0_,
employees0_.department_did as departme9_1_0_,
employees0_.ename as ename3_1_0_,
employees0_.eno as eno4_1_0_,
employees0_.joinDate as joinDate5_1_0_,
employees0_.password as password6_1_0_,
employees0_.sex as sex7_1_0_,
employees0_.username as username8_1_0_
from
Employee employees0_
where
employees0_.department_did=?
从控制台也看见了,查询的打印信息,但是部门名称一直不显示,我用的注解
第一,opensessioninviewfilter放在Struts的filter的前面;
第二,数据库的员工数据里的所属部门要填有数据;