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 26
26
import org .hibernate .engine .spi .Status ;
27
27
import org .hibernate .event .spi .EventSource ;
28
28
import org .hibernate .id .Assigned ;
29
+ import org .hibernate .id .CompositeNestedGeneratedValueGenerator ;
29
30
import org .hibernate .id .IdentifierGenerationException ;
30
31
import org .hibernate .internal .CoreLogging ;
31
32
import org .hibernate .internal .CoreMessageLogger ;
@@ -197,7 +198,8 @@ protected Object performSave(
197
198
198
199
processIfSelfDirtinessTracker ( entity , SelfDirtinessTracker ::$$_hibernate_clearDirtyAttributes );
199
200
200
- if ( persister .getGenerator () instanceof Assigned ) {
201
+ final Generator generator = persister .getGenerator ();
202
+ if ( generator instanceof Assigned || generator instanceof CompositeNestedGeneratedValueGenerator ) {
201
203
id = persister .getIdentifier ( entity , source );
202
204
if ( id == null ) {
203
205
throw new IdentifierGenerationException (
You can’t perform that action at this time.
0 commit comments