{"record":{"id":"3b47a9b943b69ef7","repo":"hibernate/hibernate-orm","slug":"is-not-relevant-for-mutationquery","errorCode":null,"errorMessage":"{} is not relevant for MutationQuery","messagePattern":"(.+?) is not relevant for MutationQuery","errorType":"exception","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/query/internal/MutationQueryImpl.java","lineNumber":525,"sourceCode":"\t}\n\n\t@Override\n\t@Nonnull\n\tpublic MutationQueryImplementor<T> setFlushMode(@Nonnull FlushModeType flushMode) {\n\t\tsuper.setFlushMode( flushMode );\n\t\treturn this;\n\t}\n\n\t@Override\n\t@Nonnull\n\tpublic MutationQueryImplementor<T> setHint(@Nonnull String hintName, @Nullable Object value) {\n\t\tsuper.setHint( hintName, value );\n\t\treturn this;\n\t}\n\n\tprivate void irrelevantHint(String tag) {\n\t\tfinal var msg = tag + \" is not relevant for MutationQuery\";\n\t\tthrow new IllegalArgumentException( msg, new IllegalSelectQueryException( msg, hql ) );\n\t}\n\n\t@Override\n\tprotected void applyReadOnlyHint(String hintName, Object value) {\n\t\tirrelevantHint( \"Read-only\" );\n\t}\n\n\t@Override\n\tprotected void applyFetchSizeHint(String hintName, Object value) {\n\t\tirrelevantHint( \"Fetch-size\" );\n\t}\n\n\t@Override\n\tprotected void applyResultCachingHint(String hintName, Object value) {\n\t\tirrelevantHint( \"Result-caching\" );\n\t}\n\n\t@Override","sourceCodeStart":507,"sourceCodeEnd":543,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/query/internal/MutationQueryImpl.java#L507-L543","documentation":"Error \"{} is not relevant for MutationQuery\" thrown in hibernate/hibernate-orm.","triggerScenarios":"A runtime precondition of the Hibernate query API is violated: <value> is not relevant for MutationQuery","commonSituations":"Application code or configuration calls the query API in a way that violates its documented contract; the interpolated values in the message identify the offending input.","solutions":["The indicated option does not apply to a mutation query. Remove the option or use a selection query."],"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"}