{"record":{"id":"1d3884c5c05d2886","repo":"hibernate/hibernate-orm","slug":"not-a-hql-query","errorCode":null,"errorMessage":"Not a HQL query","messagePattern":"Not a HQL query","errorType":"exception","errorClass":"IllegalSelectQueryException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/procedure/internal/ProcedureCallImpl.java","lineNumber":1600,"sourceCode":"\t@Override @Deprecated @SuppressWarnings(\"deprecation\")\n\t@Nonnull\n\tpublic ProcedureCallImplementor<R> setParameter(int position, @Nullable Calendar value, @Nonnull TemporalType temporalPrecision) {\n\t\tsuper.setParameter( position, value, temporalPrecision );\n\t\treturn this;\n\t}\n\n\t@Override @Deprecated @SuppressWarnings(\"deprecation\")\n\t@Nonnull\n\tpublic ProcedureCallImplementor<R> setParameter(int position, @Nullable Date value, @Nonnull TemporalType temporalPrecision) {\n\t\tcheckNotClosed();\n\t\tsuper.setParameter( position, value, temporalPrecision );\n\t\treturn this;\n\t}\n\n\t@Override\n\t@Nonnull\n\tpublic <X> SelectionQueryImplementor<X> asSelectionQuery(EntityGraph<X> entityGraph, GraphSemantic graphSemantic) {\n\t\tthrow new IllegalSelectQueryException( \"Not a HQL query\", getQueryString() );\n\t}\n\n\t@Nonnull\n\t@Override\n\tpublic QueryParameterImplementor<?> getParameter(@Nonnull String name) {\n\t\tcheckNotClosed();\n\t\treturn super.getParameter( name );\n\t}\n\n\t@Nonnull\n\t@Override\n\tpublic <T> QueryParameterImplementor<T> getParameter(@Nonnull String name, @Nonnull Class<T> type) {\n\t\tcheckNotClosed();\n\t\treturn super.getParameter( name, type );\n\t}\n\n\t@Nonnull\n\t@Override","sourceCodeStart":1582,"sourceCodeEnd":1618,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/procedure/internal/ProcedureCallImpl.java#L1582-L1618","documentation":"Error \"Not a HQL query\" thrown in hibernate/hibernate-orm.","triggerScenarios":"A runtime precondition of the Hibernate API is violated.","commonSituations":"Occurs when application code or configuration does not satisfy the documented contract of the API being called.","solutions":["Do not treat a ProcedureCall as an HQL query; use the ProcedureCall API.","Use session.createQuery(hql) if an HQL query is intended."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fad1729dce015f908198d57a8d80274a30f905a5","analyzedAt":"2026-08-22T04:13:57.527Z","schemaVersion":2},"datasetVersion":"2026-08-22T09:17:25.309Z"}