能够运行。但是控制台上输出的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
已解决,我忘记重写tostring方法了、、