Skip to content

Commit

Permalink
[hibernate#2060] ClassCastException when using embeddable ids
Browse files Browse the repository at this point in the history
  • Loading branch information
dreab8 committed Jan 20, 2025
1 parent 71fc3d3 commit 638dcc9
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import org.hibernate.sql.results.graph.InitializerParent;
import org.hibernate.sql.results.graph.embeddable.EmbeddableInitializer;
import org.hibernate.sql.results.graph.embeddable.internal.EmbeddableForeignKeyResultImpl;
import org.hibernate.sql.results.graph.embeddable.internal.EmbeddableInitializerImpl;

public class ReactiveEmbeddableForeignKeyResultImpl<T> extends EmbeddableForeignKeyResultImpl<T> {

Expand All @@ -22,6 +21,6 @@ public ReactiveEmbeddableForeignKeyResultImpl(EmbeddableForeignKeyResultImpl<T>
public EmbeddableInitializer<?> createInitializer(InitializerParent parent, AssemblerCreationState creationState) {
return getReferencedModePart() instanceof NonAggregatedIdentifierMapping
? new ReactiveNonAggregatedIdentifierMappingInitializer( this, null, creationState, true )
: new EmbeddableInitializerImpl( this, null, null, creationState, true );
: new ReactiveEmbeddableInitializerImpl( this, null, null, creationState, true );
}
}

0 comments on commit 638dcc9

Please sign in to comment.