Hibernate query.list() method is returning empty list instead of null value

前端 未结 2 1058
你的背包
你的背包 2021-02-01 01:15

When there are no rows, both query.list() and criteria.list() are returning empty list instead of a null value.

What is t

2条回答
  •  庸人自扰
    2021-02-01 01:55

    It is consistant: a list is returned with all results, whether there are any or not.

提交回复
热议问题