Search in sources :

Example 1 with ComponentMetamodel

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);
}
Also used : ComponentMetamodel(org.hibernate.tuple.component.ComponentMetamodel) TypeFactory(org.hibernate.type.TypeFactory)

Aggregations

ComponentMetamodel (org.hibernate.tuple.component.ComponentMetamodel)1 TypeFactory (org.hibernate.type.TypeFactory)1