Examples of entities()


Examples of org.qi4j.bootstrap.ModuleAssembly.entities()

                ModuleAssembly configModule = module.layer().module( "Config" );
                configModule.entities( JdbmConfiguration.class ).visibleIn( Visibility.layer );
                new EntityTestAssembler().assemble( configModule );

                module.services( EhCachePoolService.class );
                configModule.entities( EhCacheConfiguration.class ).visibleIn( Visibility.layer );
            }
        };
    }

    @Override
View Full Code Here

Examples of org.qi4j.bootstrap.ModuleAssembly.entities()

        super.assemble( module );
        System.out.println( "Registering GAE services." );
        module.services( GaeEntityStoreService.class );

        ModuleAssembly configModule = module.layer().module( "config" );
        configModule.entities( GaeEntityStoreConfiguration.class ).visibleIn( Visibility.layer );
        configModule.services( MemoryEntityStoreService.class );

    }
}
View Full Code Here

Examples of org.qi4j.bootstrap.ModuleAssembly.entities()

        throws AssemblyException
    {
        ModuleAssembly roleMapModule = contextLayer.module( "CONTEXT-RoleMap" );

        // Role-playing entities
        roleMapModule
            .entities(
                CargoRoleMap.class,
                CargosRoleMap.class,
                HandlingEventsRoleMap.class )
            .visibleIn( application );
View Full Code Here

Examples of org.qi4j.bootstrap.ModuleAssembly.entities()

                CargosRoleMap.class,
                HandlingEventsRoleMap.class )
            .visibleIn( application );

        // Non-role-playing entities
        roleMapModule
            .entities(
                HandlingEventEntity.class,
                LocationEntity.class,
                VoyageEntity.class )
            .visibleIn( application );
View Full Code Here

Examples of org.qi4j.bootstrap.ModuleAssembly.entities()

    private void assembleContextLayer( LayerAssembly contextLayer )
        throws AssemblyException
    {
        // Role-playing entities
        ModuleAssembly entityRoleModule = contextLayer.module( "CONTEXT-EntityRole" );
        entityRoleModule
            .entities(
                CargoRoleMap.class,
                CargosRoleMap.class,
                HandlingEventRoleMap.class,
                HandlingEventsRoleMap.class )
View Full Code Here

Examples of org.qi4j.bootstrap.ModuleAssembly.entities()

                HandlingEventsRoleMap.class )
            .visibleIn( application );

        // Non-role-playing entities
        ModuleAssembly entityNonRoleModule = contextLayer.module( "CONTEXT-EntityNonRole" );
        entityNonRoleModule
            .entities(
                LocationEntity.class,
                VoyageEntity.class )
            .visibleIn( application );
View Full Code Here

Examples of org.qi4j.bootstrap.ModuleAssembly.entities()

        module.services( FileConfigurationService.class );

        module.services( NeoEntityStoreService.class );

        ModuleAssembly configModule = module.layer().module( "config" );
        configModule.entities( NeoConfiguration.class ).visibleIn( Visibility.layer );
        new EntityTestAssembler().assemble( configModule );
        new OrgJsonValueSerializationAssembler().assemble( module );
    }

    @Override
View Full Code Here

Examples of org.qi4j.bootstrap.ModuleAssembly.entities()

        // Always re-index in test scenarios
        mainModule.services( ReindexingStrategy.class ).
            withMixins( ReindexingStrategy.AlwaysNeed.class ).
            visibleIn( Visibility.module );
        config.entities( ReindexerConfiguration.class ).
            visibleIn( Visibility.layer );
    }

    public static void setUpTest( Module module )
    {
View Full Code Here

Examples of org.qi4j.bootstrap.ModuleAssembly.entities()

    public void assemble( ModuleAssembly module )
        throws AssemblyException
    {
        module.services( FileConfigurationService.class );
        ModuleAssembly prefModule = module.layer().module( "PrefModule" );
        prefModule.entities( NativeConfiguration.class ).visibleIn( Visibility.application );
        prefModule.forMixin( NativeConfiguration.class ).declareDefaults().dataDirectory().set( DATA_DIR.getAbsolutePath() );
        new EntityTestAssembler().assemble( prefModule );

        module.entities( ExampleEntity.class );
        module.values( ExampleValue.class, ExampleValue2.class );
View Full Code Here

Examples of org.qi4j.bootstrap.ModuleAssembly.entities()

   @Override
   public void assemble(ModuleAssembly module) throws AssemblyException
   {
       module.services( FileConfigurationService.class );
      ModuleAssembly prefModule = module.layer().module( "PrefModule" );
      prefModule.entities( NativeConfiguration.class ).visibleIn(Visibility.application);
      prefModule.forMixin( NativeConfiguration.class ).declareDefaults().dataDirectory().set( DATA_DIR.getAbsolutePath() );
      new EntityTestAssembler().assemble( prefModule );

      module.entities( ExampleEntity.class );
      module.values( ExampleValue.class, ExampleValue2.class );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.