How to make a Jpql query work in Spring Jpa Repository with Optional return?

后端 未结 0 1662
南笙
南笙 2020-11-28 04:19

I am using Jpql queries in my JpaRepository. The problem is that every time I call a method with an optional return I get this error:

java.lang.ClassCast

相关标签:
回答
  • 消灭零回复
提交回复
热议问题