public List findByProperty(String comId, String property, Object value) {
String sql = "from " + clazz.getName() + " where comId=? and "
+ property + "=?";
return createQuery(sql, comId, value).list();
}
我想用面向对象查询,改如何操作呢