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

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


  public void setupConfigurationMapAndContexts() {
    cfg = new HashMap<String, Object>();
    cfg.put( OgmProperties.DATABASE, "database" );

    context = new AppendableConfigurationContext();
    configuration = new MongoDB().getConfigurationBuilder( new ConfigurationContextImpl( context ) );

    reader = new ConfigurationPropertyReader( cfg, new ClassLoaderServiceImpl() );
  }
View Full Code Here


  private AppendableConfigurationContext context;

  @Before
  public void setupBuilder() {
    context = new AppendableConfigurationContext();
    mongoOptions = new MongoDB().getConfigurationBuilder( new ConfigurationContextImpl( context ) );
  }
View Full Code Here

  private AppendableConfigurationContext context;

  @Before
  public void setupBuilder() {
    context = new AppendableConfigurationContext();
    mongoOptions = new MongoDB().getConfigurationBuilder( new ConfigurationContextImpl( context ) );
  }
View Full Code Here

public class AssociationStorageOptionTest {

  @Test
  public void testAssociationStorageMappingOption() throws Exception {
    AppendableConfigurationContext context = new AppendableConfigurationContext();
    ConfigurationContext configurationContext = new ConfigurationContextImpl( context );

    new MongoDB().getConfigurationBuilder( configurationContext )
      .entity( ExampleForMongoDBMapping.class )
        .property( "content", ElementType.FIELD )
          .associationStorage( AssociationStorageType.ASSOCIATION_DOCUMENT );
View Full Code Here

  }

  @Override
  public <D extends DatastoreConfiguration<G>, G extends GlobalContext<?, ?>> G configureOptionsFor(Class<D> datastoreType) {
    D configuration = newInstance( datastoreType );
    return configuration.getConfigurationBuilder( new ConfigurationContextImpl( context ) );
  }
View Full Code Here

  private AppendableConfigurationContext configurationContext;

  @Before
  public void setupContexts() {
    configurationContext = new AppendableConfigurationContext();
    configuration = SampleOptionModel.createGlobalContext( new ConfigurationContextImpl( configurationContext ) );
  }
View Full Code Here

TOP

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

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.