The problem is that both setParameterList() and scroll() are defined on the deprecated org.hibernate.Query not org.hibernate.query.Query. Therefore the definition is from the Deprecated interface. This is this the warning I am receiving from the Oracle/Sun JDK 1.8: The method scroll(ScrollMode) from the type Query<PjmRtAvgBucket> is deprecated The method needs to be overridden in the org.hibernate.query.Query() for the deprecation warning to be resolved, as setMaxResutls() |