Positional parameter syntax changed in Hibernate 5.3, and the old syntax is no longer supported. For best compatibility across Hibernate versions, simply use named parameters.
Resolves this error message:
org.hibernate.QueryException: Legacy-style query parameters (`?`) are no longer supported;
use JPA-style ordinal parameters (e.g., `?1`) instead :
select count( id ) from Category where id = ? [select count( id ) from Category where id = ?]
Positional parameter syntax changed in Hibernate 5.3, and the old syntax is no longer supported. For best compatibility across Hibernate versions, simply use named parameters.
Resolves this error message: