Hibernate:
select
student0_.SID as SID1_1_,
student0_.SNAME as SNAME2_1_,
student0_.SEX as SEX3_1_,
student0_.gid as gid4_1_
from
STUDENT student0_
[Student@4ddbbdf8, Student@1115ec15, Student@82ea68c]
[Student@4ddbbdf8, Student@1115ec15, Student@82ea68c]
[Student@4ddbbdf8, Student@1115ec15, Student@82ea68c]
因为HQL是基于对象查询,你做查询时,其实是对对象的操作。重写Stduent的toString()即可看到查询信息。初学,欢迎指正!