Skip to content

Commit 651b0af

Browse files
committed
Add methods to CompositeNestedGeneratedValueGenerator for Hibernate reactive
1 parent 10f4e24 commit 651b0af

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

hibernate-core/src/main/java/org/hibernate/id/CompositeNestedGeneratedValueGenerator.java

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,16 @@ public CompositeNestedGeneratedValueGenerator(
116116
this.compositeType = compositeType;
117117
}
118118

119+
// Used by Hibernate Reactive
120+
public CompositeNestedGeneratedValueGenerator(
121+
GenerationContextLocator generationContextLocator,
122+
CompositeType compositeType,
123+
List<GenerationPlan> generationPlans) {
124+
this.generationContextLocator = generationContextLocator;
125+
this.compositeType = compositeType;
126+
this.generationPlans.addAll( generationPlans );
127+
}
128+
119129
public void addGeneratedValuePlan(GenerationPlan plan) {
120130
generationPlans.add( plan );
121131
}
@@ -172,4 +182,19 @@ public void initialize(SqlStringGenerationContext context) {
172182
plan.initialize( context );
173183
}
174184
}
185+
186+
// Used by Hibernate Reactive
187+
public List<GenerationPlan> getGenerationPlans() {
188+
return generationPlans;
189+
}
190+
191+
// Used by Hibernate Reactive
192+
public GenerationContextLocator getGenerationContextLocator() {
193+
return generationContextLocator;
194+
}
195+
196+
// Used by Hibernate Reactive
197+
public CompositeType getCompositeType() {
198+
return compositeType;
199+
}
175200
}

0 commit comments

Comments
 (0)