Недавно, после простого перехода на Spring boot 3.2.1, я начал получать такую ошибку:
Код: Выделить всё
org.hibernate.query.sqm.produce.function.FunctionArgumentException: Function argument [org.hibernate.query.sqm.tree.expression.SqmLiteralNull@5bd97ebe] of type [org.hibernate.query.sqm.tree.expression.NullSqmExpressible@3f8a721f] at specified position [2] in call arguments was not typed as an allowable function return type
Код: Выделить всё
org.springframework.boot
spring-boot-starter-parent
3.2.1
21
UTF-8
UTF-8
org.springframework.boot
spring-boot-starter-data-jpa
org.springframework.boot
spring-boot-starter-security
org.springframework.boot
spring-boot-starter-web
com.oracle.database.jdbc
ojdbc11
org.apache.commons
commons-lang3
Код: Выделить всё
@Query("select org "
+ " from Organization org "
+ " where 1 = 1 "
+ " and ( "
+ " coalesce(:#{#request.name},null) is null "
+ " or "
+ " trim(:#{#request.name}) = '' "
+ " or "
+ " lower(org.name) like lower(trim(:#{#request.name}))"
+ " ) "
)
Page getPageByCriteria(@Param("request") GetOrganizationsRequestDto request, Pageable pageable);
У кого-нибудь есть такая или подобная проблема, и кто-нибудь может мне помочь? с этим?
Спасибо
Подробнее здесь: https://stackoverflow.com/questions/778 ... 0-to-3-2-1
Мобильная версия