I recently migrated from Spring Boot 1.3.6 to 1.4.0. Now I get several warnings of the same kind in my logfile:
org.hibernate.orm.deprecation: HHH90000016: Found use of deprecated 'collection property' syntax in HQL/JPQL query [null.elements]; use collection function syntax instead [elements(null)].
The warnings are caused by my spring-data repositories. Some methods are using userdefined queries like
@Query("select ... where ... member of ...")
and others have queries derived by methode names like
List<...> findBy...Contains(...);
The question/answer How to remove Hibernate deprecation warning message shows how to prevent the message for userdefined queries. But it also states that its valid JPQL. What is the recommended way handle this warning?