Hi everyone,
I hope someone in this Hibernate forum can enlighten me on a problem
I use the Specification interface to build my own criterion of a Model class, which is linked to a Brand class by ManyToOne relationship
in the ModelSpecification class which implements the Specification interface : I include all the columns of the table with the following code : [rootModel.fetch(“brand”)]
and so after calling the findAll(ModelSpecification) function its work ,
but if I add a pagination that is less than the number of line returns I get an error: org.hibernate.QueryException: query specified join fetching, but the owner of the fetched association was not present in the select list
yet I checked the resulting query in the console and all the columns of the model table and the brand table are present so
I don’t understand why