How can I avoid the Warning “firstResult/maxResults specified with collection fetch; applying in memory!” when using Hibernate?

后端 未结 6 1083
长情又很酷
长情又很酷 2020-12-01 09:08

I\'m getting a warning in the Server log \"firstResult/maxResults specified with collection fetch; applying in memory!\". However everything working fine. B

6条回答
  •  醉酒成梦
    2020-12-01 09:56

    To avoid this WARNING you have to change the call getSingleResult to getResultList().get(0)

提交回复
热议问题