hibernate query.list() 查询时数据为空但list.size为1,报错all elements are null;这可能是sql语句问题,比如左连接却都查询右表数据,右表没有符合条件数据,

  • 这时可改为右连接,或左右表替换

hibernate all elements are null

相关文章: