protected void trackCustomCascadingSaves ( Mapping mapping , Iterable < PersistentProperty > persistentProperties ) { for ( PersistentProperty property : persistentProperties ) { PropertyConfig propConf = mapping . getPropertyConfig ( property . getName ( ) ) ; if ( propConf != null && propConf . getCascade ( ) != null ) { propConf . setExplicitSaveUpdateCascade ( isSaveUpdateCascade ( propConf . getCascade ( ) ) ) ; } } }
Checks for any custom cascading saves set up via the mapping DSL and records them within the persistent property .