use of org.hibernate.cfg.internal.ConvertedJdbcMapping in project hibernate-orm by hibernate.
the class AnnotationBinder method resolveAttributeConverter.
private static JdbcMapping resolveAttributeConverter(Class<AttributeConverter<?, ?>> type, MetadataBuildingContext context) {
final StandardServiceRegistry serviceRegistry = context.getBootstrapContext().getServiceRegistry();
final ManagedBeanRegistry beanRegistry = serviceRegistry.getService(ManagedBeanRegistry.class);
final ManagedBean<AttributeConverter<?, ?>> bean = beanRegistry.getBean(type);
return new ConvertedJdbcMapping<>(bean, context.getBootstrapContext().getTypeConfiguration());
}
Aggregations