问答详情
源自:3-6 [Hibernate单表操作] 单表操作CRUD实例

get和load方法出错

能够运行。但是控制台上输出的sql语句是这样的

Hibernate: 

    select

        students0_.id as id1_0_0_,

        students0_.name as name2_0_0_,

        students0_.sex as sex3_0_0_,

        students0_.address as address4_0_0_,

        students0_.picture as picture5_0_0_ 

    from

        hibernate.students students0_ 

    where

        students0_.id=?

hibernate.Students@32f06b32


提问者:weibo_乔少恭手办之yang_03858345 2016-09-22 18:11

个回答

  • weibo_乔少恭手办之yang_03858345
    2016-09-22 18:43:04

    已解决,我忘记重写tostring方法了、、