{"record":{"id":"ff56df66447ff693","repo":"hibernate/hibernate-orm","slug":"unsupported-cascade-style-cascade","errorCode":null,"errorMessage":"Unsupported cascade style: ${cascade}","messagePattern":"Unsupported cascade style: (.+?)","errorType":"exception","errorClass":"MappingException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/engine/spi/CascadeStyles.java","lineNumber":236,"sourceCode":"\t\tbase.put( \"delete\", DELETE );\n\t\tbase.put( \"remove\", DELETE ); // adds remove as a sort-of alias for delete...\n\t\tbase.put( \"delete-orphan\", DELETE_ORPHAN );\n\t\tbase.put( \"none\", NONE );\n\n\t\treturn base;\n\t}\n\n\t/**\n\t * Factory method for obtaining named cascade styles\n\t *\n\t * @param cascade The named cascade style name.\n\t *\n\t * @return The appropriate CascadeStyle\n\t */\n\tpublic static CascadeStyle getCascadeStyle(String cascade) {\n\t\tCascadeStyle style = STYLES.get( cascade );\n\t\tif ( style == null ) {\n\t\t\tthrow new MappingException( \"Unsupported cascade style: \" + cascade );\n\t\t}\n\t\telse {\n\t\t\treturn style;\n\t\t}\n\t}\n\n\tpublic static void registerCascadeStyle(String name, BaseCascadeStyle cascadeStyle) {\n\t\tLOG.tracef( \"Registering external cascade style [%s : %s]\", name, cascadeStyle );\n\t\tfinal CascadeStyle old = STYLES.put( name, cascadeStyle );\n\t\tif ( old != null ) {\n\t\t\tLOG.debugf(\n\t\t\t\t\t\"External cascade style registration [%s : %s] overrode base registration [%s]\",\n\t\t\t\t\tname,\n\t\t\t\t\tcascadeStyle,\n\t\t\t\t\told\n\t\t\t);\n\t\t}\n\t}","sourceCodeStart":218,"sourceCodeEnd":254,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/engine/spi/CascadeStyles.java#L218-L254","documentation":"Error \"Unsupported cascade style: ${cascade}\" thrown in hibernate/hibernate-orm.","triggerScenarios":"Thrown at hibernate-core/src/main/java/org/hibernate/engine/spi/CascadeStyles.java:236 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a supported cascade style (e.g. PERSIST, MERGE, REMOVE, REFRESH, DETACH, ALL)","Remove or correct the unsupported cascade setting on the association"],"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"}