Can javax.persistence.Query.getResultList() return null?

后端 未结 7 1878
心在旅途
心在旅途 2020-12-02 15:19

And if so, under what circumstances?

Javadoc and JPA spec says nothing.

7条回答
  •  清歌不尽
    2020-12-02 15:30

    Of course, if you test the result set with Jakarta's CollectionUtils.isNotEmpty, you're covered either way.

提交回复
热议问题