hibernate execute与executefind的区别

来源:互联网 发布:java用户权限管理 编辑:程序博客网 时间:2024/06/07 18:47

见源码:

public List executeFind(HibernateCallback<?> action) throws DataAccessException {
  Object result = doExecute(action, false, false);
  if (result != null && !(result instanceof List)) {
   throw new InvalidDataAccessApiUsageException(
     "Result object returned from HibernateCallback isn't a List: [" + result + "]");
  }
  return (List) result;
 }


0 0