File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
hibernate-core/src/main/java/org/hibernate/event/internal Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 2626import org .hibernate .engine .spi .Status ;
2727import org .hibernate .event .spi .EventSource ;
2828import org .hibernate .id .Assigned ;
29+ import org .hibernate .id .CompositeNestedGeneratedValueGenerator ;
2930import org .hibernate .id .IdentifierGenerationException ;
3031import org .hibernate .internal .CoreLogging ;
3132import org .hibernate .internal .CoreMessageLogger ;
@@ -197,7 +198,8 @@ protected Object performSave(
197198
198199 processIfSelfDirtinessTracker ( entity , SelfDirtinessTracker ::$$_hibernate_clearDirtyAttributes );
199200
200- if ( persister .getGenerator () instanceof Assigned ) {
201+ final Generator generator = persister .getGenerator ();
202+ if ( generator instanceof Assigned || generator instanceof CompositeNestedGeneratedValueGenerator ) {
201203 id = persister .getIdentifier ( entity , source );
202204 if ( id == null ) {
203205 throw new IdentifierGenerationException (
You can’t perform that action at this time.
0 commit comments