Skip to content

Commit df5ba05

Browse files
gavinkingsebersole
authored andcommitted
HHH-18139 throw an exception when assigned id is null in StatelessSession.insert()
Signed-off-by: Gavin King <gavin@hibernate.org>
1 parent d938d98 commit df5ba05

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hibernate-core/src/main/java/org/hibernate/internal/StatelessSessionImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
import org.hibernate.generator.values.GeneratedValues;
5555
import org.hibernate.graph.GraphSemantic;
5656
import org.hibernate.graph.spi.RootGraphImplementor;
57+
import org.hibernate.id.IdentifierGenerationException;
5758
import org.hibernate.loader.ast.spi.CascadingFetchProfile;
5859
import org.hibernate.metamodel.mapping.PluralAttributeMapping;
5960
import org.hibernate.persister.collection.CollectionPersister;

0 commit comments

Comments
 (0)