问答详情
源自:4-1 SSH-案例:分页查询员工

基于SSH实现员工管理系统之案例实现篇 4-1 18:26

 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=?


从控制台也看见了,查询的打印信息,但是部门名称一直不显示,我用的注解

提问者:慕粉3535685 2017-05-31 18:06

个回答

  • 慕尼黑9146956
    2017-06-10 18:54:01

    第一,opensessioninviewfilter放在Struts的filter的前面;

    第二,数据库的员工数据里的所属部门要填有数据;