Package org.hibernate.ogm.options.navigation.impl

Examples of org.hibernate.ogm.options.navigation.impl.ConfigurationBuilderService


   */
  public <G extends GlobalContext<?, ?>, D extends DatastoreConfiguration<G>> G configureDatastore(Class<D> datastoreType) {
    ResolvedType resolvedDatastoreType = typeResolver.resolve( datastoreType );
    ResolvedType globalContextType = resolvedDatastoreType.typeParametersFor( DatastoreConfiguration.class ).get( 0 );

    ConfigurationBuilderService configurationBuilderService = getSessionFactory()
        .getServiceRegistry()
        .getService( ConfigurationBuilderService.class );

    GlobalContext<?, ?> globalContext = configurationBuilderService.getConfigurationBuilder();

    if ( globalContextType.getErasedType().isInstance( globalContext ) ) {
      @SuppressWarnings("unchecked")
      G store = (G) globalContext;
      return store;
View Full Code Here

TOP

Related Classes of org.hibernate.ogm.options.navigation.impl.ConfigurationBuilderService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.