Tabnine Logo
MetadataBuilderImpl
Code IndexAdd Tabnine to your IDE (free)

How to use
MetadataBuilderImpl
in
org.hibernate.boot.internal

Best Java code snippets using org.hibernate.boot.internal.MetadataBuilderImpl (Showing top 14 results out of 315)

origin: hibernate/hibernate-orm

/**
 * Get a builder for metadata where non-default options can be specified.
 *
 * @return The built metadata.
 */
public MetadataBuilder getMetadataBuilder() {
  MetadataBuilderImpl defaultBuilder = new MetadataBuilderImpl( this );
  return getCustomBuilderOrDefault( defaultBuilder );
}
origin: hibernate/hibernate-orm

private void applyCfgXmlValues(CfgXmlAccessService service) {
  final LoadedConfig aggregatedConfig = service.getAggregatedConfig();
  if ( aggregatedConfig == null ) {
    return;
  }
  for ( CacheRegionDefinition cacheRegionDefinition : aggregatedConfig.getCacheRegionDefinitions() ) {
    applyCacheRegionDefinition( cacheRegionDefinition );
  }
}
origin: hibernate/hibernate-orm

public MetadataBuilderImpl(MetadataSources sources) {
  this( sources, getStandardServiceRegistry( sources.getServiceRegistry() ) );
}
origin: hibernate/hibernate-orm

public MetadataBuilderImpl(MetadataSources sources, StandardServiceRegistry serviceRegistry) {
  this.sources = sources;
  this.options = new MetadataBuildingOptionsImpl( serviceRegistry );
  this.bootstrapContext = new BootstrapContextImpl( serviceRegistry, options );
  //this is needed only fro implementig deprecated method
  options.setBootstrapContext( bootstrapContext );
  for ( MetadataSourcesContributor contributor :
      sources.getServiceRegistry()
          .getService( ClassLoaderService.class )
          .loadJavaServices( MetadataSourcesContributor.class ) ) {
    contributor.contribute( sources );
  }
  // todo : not so sure this is needed anymore.
  //		these should be set during the StandardServiceRegistryBuilder.configure call
  applyCfgXmlValues( serviceRegistry.getService( CfgXmlAccessService.class ) );
  final ClassLoaderService classLoaderService = serviceRegistry.getService( ClassLoaderService.class );
  for ( MetadataBuilderInitializer contributor : classLoaderService.loadJavaServices( MetadataBuilderInitializer.class ) ) {
    contributor.contribute( this, serviceRegistry );
  }
}
origin: hibernate/hibernate-orm

@Override
protected void configureMetadataBuilder(MetadataBuilder metadataBuilder) {
  ((MetadataBuilderImpl)metadataBuilder).contributeJavaTypeDescriptor(new JavaTypeDescriptorRegistry.FallbackJavaTypeDescriptor( MutableState2.class ) {
    @Override
    public MutabilityPlan getMutabilityPlan() {
      return ImmutableMutabilityPlan.INSTANCE;
    }
  });
}
origin: hibernate/hibernate-orm

@Override
protected void configureMetadataBuilder(MetadataBuilder metadataBuilder) {
  super.configureMetadataBuilder( metadataBuilder );
  ( ( MetadataBuilderImpl) metadataBuilder ).allowSpecjSyntax();
}
origin: org.hibernate.orm/hibernate-core

public MetadataBuilderImpl(MetadataSources sources, StandardServiceRegistry serviceRegistry, ClassmateContext classmateContext) {
  this.sources = sources;
  this.options = new MetadataBuildingOptionsImpl( serviceRegistry );
  this.bootstrapContext = new BootstrapContextImpl( serviceRegistry, classmateContext, options );
  for ( MetadataSourcesContributor contributor :
      sources.getServiceRegistry()
          .getService( ClassLoaderService.class )
          .loadJavaServices( MetadataSourcesContributor.class ) ) {
    contributor.contribute( sources );
  }
  // todo : not so sure this is needed anymore.
  //		these should be set during the StandardServiceRegistryBuilder.configure call
  applyCfgXmlValues( serviceRegistry.getService( CfgXmlAccessService.class ) );
  final ClassLoaderService classLoaderService = serviceRegistry.getService( ClassLoaderService.class );
  for ( MetadataBuilderInitializer contributor : classLoaderService.loadJavaServices( MetadataBuilderInitializer.class ) ) {
    contributor.contribute( this, serviceRegistry );
  }
}
origin: hibernate/hibernate-orm

/**
 * Get a builder for metadata where non-default options can be specified.
 *
 * @return The built metadata.
 * @deprecated Use {@link #getMetadataBuilder()} instead
 */
@Deprecated
public MetadataBuilder getMetadataBuilder(StandardServiceRegistry serviceRegistry) {
  MetadataBuilderImpl defaultBuilder = new MetadataBuilderImpl( this, serviceRegistry );
  return getCustomBuilderOrDefault( defaultBuilder );
}
origin: org.hibernate.orm/hibernate-core

private void applyCfgXmlValues(CfgXmlAccessService service) {
  final LoadedConfig aggregatedConfig = service.getAggregatedConfig();
  if ( aggregatedConfig == null ) {
    return;
  }
  for ( CacheRegionDefinition cacheRegionDefinition : aggregatedConfig.getCacheRegionDefinitions() ) {
    applyCacheRegionDefinition( cacheRegionDefinition );
  }
}
origin: org.hibernate.orm/hibernate-core

public MetadataBuilderImpl(MetadataSources sources) {
  this(
      sources,
      getStandardServiceRegistry( sources.getServiceRegistry() )
  ,
      new ClassmateContext());
}
origin: org.hibernate.orm/hibernate-core

/**
 * Get a builder for metadata where non-default options can be specified.
 *
 * @return The built metadata.
 */
public MetadataBuilder getMetadataBuilder() {
  MetadataBuilderImpl defaultBuilder = new MetadataBuilderImpl( this );
  return getCustomBuilderOrDefault( defaultBuilder );
}
origin: org.hibernate.orm/hibernate-core

/**
 * Get a builder for metadata where non-default options can be specified.
 *
 * @return The built metadata.
 * @deprecated Use {@link #getMetadataBuilder()} instead
 */
@Deprecated
public MetadataBuilder getMetadataBuilder(StandardServiceRegistry serviceRegistry, ClassmateContext classmateContext) {
  MetadataBuilderImpl defaultBuilder = new MetadataBuilderImpl( this, serviceRegistry, classmateContext );
  return getCustomBuilderOrDefault( defaultBuilder );
}
origin: jkazama/sample-boot-hibernate

private Metadata metadata(StandardServiceRegistry serviceRegistry, MetadataSources metadataSources)
    throws Exception {
  MetadataBuilder builder = new MetadataBuilderImpl(metadataSources, serviceRegistry);
  Metadata metadata = builder
      .applyPhysicalNamingStrategy(new SpringPhysicalNamingStrategy())
      .applyImplicitNamingStrategy(new SpringImplicitNamingStrategy())
      .build();
  return metadata;
}
origin: jkazama/sample-boot-micro

private Metadata metadata(StandardServiceRegistry serviceRegistry, MetadataSources metadataSources)
    throws Exception {
  MetadataBuilder builder = new MetadataBuilderImpl(metadataSources, serviceRegistry);
  Metadata metadata = builder
      .applyPhysicalNamingStrategy(new SpringPhysicalNamingStrategy())
      .applyImplicitNamingStrategy(new SpringImplicitNamingStrategy())
      .build();
  return metadata;
}
org.hibernate.boot.internalMetadataBuilderImpl

Most used methods

  • <init>
  • applyCacheRegionDefinition
  • applyCfgXmlValues
  • getStandardServiceRegistry
  • allowSpecjSyntax
  • contributeJavaTypeDescriptor

Popular in Java

  • Start an intent from android
  • setScale (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onCreateOptionsMenu (Activity)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Kernel (java.awt.image)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now