hsql查询语句

hsql写的查询语句,那个表名是对应着你po类的类名

String hql="from XSubject ";它的查询语句如下(XSubject是我po类的类名,二subject是对应的数据库表名)

Hibernate:
    select
        xsubject0_.id as id1_22_,
        xsubject0_.subjectName as subjectN2_22_
    from
        Subject xsubject0_

猜你喜欢

转载自blog.csdn.net/pttaoge/article/details/79643069