final TypeContributor[] typeContributors = osgiServiceUtil.getServiceImpls( TypeContributor.class ); for ( TypeContributor typeContributor : typeContributors ) { metadataBuilder.applyTypes( typeContributor );
metadataBuilder.applyTypes( typeContributor );
metadataBuilder.applyTypes( typeContributor );
/** * Get the v5 Metadata object. */ public synchronized Metadata getMetadata() throws HibernateException { if (metadata != null) { return metadata; } final org.hibernate.cfg.Configuration configV5 = getConfigurationV5(); final StandardServiceRegistry serviceRegistry = buildServiceRegistry(configV5); mapDialectObjects(serviceRegistry); final MetadataBuilder metadataBuilder = metadataSources.getMetadataBuilder(serviceRegistry); metadataBuilder.applyTypes(new V2ToV5TypeContributor(this)); if (useV2PostgresSchemaNamingStrategy()) { metadataBuilder.applyImplicitNamingStrategy(V2_POSTGRES_NAMING_STRATEGY); } metadata = metadataBuilder.build(); updateV5MetaData(metadata); return metadata; }
metadataBuilder.applyTypes( typeContributor );
if (additionalTypes != null) { additionalTypes.stream().forEach(type -> { metadataBuilder.applyTypes((typeContributions, serviceRegistry1) -> { if(type instanceof BasicType) { typeContributions.contributeType((BasicType) type);