Package org.hibernate.ogm.datastore.mongodb

Examples of org.hibernate.ogm.datastore.mongodb.MongoDB


  private AppendableConfigurationContext context;

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


  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

  @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 );

    OptionsContainer options = new ProgrammaticOptionValueSource( context ).getPropertyOptions( ExampleForMongoDBMapping.class, "content" );
View Full Code Here

TOP

Related Classes of org.hibernate.ogm.datastore.mongodb.MongoDB

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.