1.实体类
private int count;
"count"的getter和setter方法
2.XXX.hbm.xml
<property name="count" formula="select count(*) from table_User"></property>
3.formula="更复杂查询"
1.实体类
private int count;
"count"的getter和setter方法
2.XXX.hbm.xml
<property name="count" formula="select count(*) from table_User"></property>
3.formula="更复杂查询"