"from ManPo ma where ma.name='主题'" "from ManPo ma where ma.name=:name" 之后再用 query.setString("name", "主题");