use of org.hibernate.tuple.component.ComponentMetamodel in project hibernate-orm by hibernate.
the class Component method getType.
@Override
public Type getType() throws MappingException {
// TODO : temporary initial step towards HHH-1907
final ComponentMetamodel metamodel = new ComponentMetamodel(this, getMetadata().getMetadataBuildingOptions());
final TypeFactory factory = getMetadata().getTypeResolver().getTypeFactory();
return isEmbedded() ? factory.embeddedComponent(metamodel) : factory.component(metamodel);
}
Aggregations