时间:2021-07-01 10:21:17 帮助过:63人阅读
String sql = "SELECT Area.* FROM area AS Area,district
AS d WHERE Area.districtid
=d.districtid
AND Area.areaname
= '"
+ areaname + "' AND d.districtname
='" + cityname + "'";
@SuppressWarnings("unchecked")
List as = (List) getCurrentSession()
.createSQLQuery(sql).addEntity("Area",Area.class).list();