We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff58290 commit 1273aafCopy full SHA for 1273aaf
hibernate-core/src/main/java/org/hibernate/metamodel/internal/AttributeFactory.java
@@ -212,8 +212,15 @@ private <Y> Type<Y> getMetaModelType(ValueContext typeContext) {
212
}
213
case EMBEDDABLE: {
214
final Component component = (Component) typeContext.getValue();
215
+ Class javaType;
216
+ if ( component.getComponentClassName() == null ) {
217
+ javaType = typeContext.getBindableType();
218
+ }
219
+ else {
220
+ javaType = component.getComponentClass();
221
222
final EmbeddableTypeImpl<Y> embeddableType = new EmbeddableTypeImpl<Y>(
- typeContext.getBindableType(),
223
+ javaType,
224
typeContext.getAttributeMetadata().getOwnerType(),
225
(ComponentType) typeContext.getValue().getType()
226
);
0 commit comments