Aye wrote:
First time posting here and I was trying to avoid having to ask for
help on such a simple issue while learning qi4j. I've been trying to
track this down myself but really at a "hair pulling out" point. I
tried going through the archived postings but no luck. I'm trying to
run a simple test case on a Person entity but having issues at
assembly stage so actually commented out the person assembly and just
trying to assemble a simple rdf indexing and in-memory store:

public void assemble(ModuleAssembly module) throws AssemblyException {
         module.addServices(
            MemoryEntityStoreService.class,
            UuidIdentityGeneratorService.class
        );

        // module.addAssembler(new PersonModelAssembler());
        module.addAssembler( new RdfMemoryStoreAssembler() );
    }

Trying to run the test is giving me this problem:


org.qi4j.api.common.ConstructionException: Non-optional
@org.qi4j.spi.entity.EntityTypeRegistry was not bound in
org.qi4j.index.rdf.internal.RdfEntityIndexerMixin
at org.qi4j.runtime.injection.DependencyModel.bind(DependencyModel.java:277)
        at 
org.qi4j.runtime.injection.InjectedFieldModel.bind(InjectedFieldModel.java:80)
        at 
org.qi4j.runtime.injection.InjectedFieldsModel.bind(InjectedFieldsModel.java:71)
        at org.qi4j.runtime.composite.MixinModel.bind(MixinModel.java:93)
...

It just seems like I'm missing something obvious. Any help would be appreciated!
Thanks,

The minimum requirement to use entities is to use an EntityStore and an EntityTypeRegistry. Id generator is recommended. The easiest way to ensure this is setup properly is to use the EntityTestAssembler:
new EntityTestAssembler().assemble(module);

That will set upp the store, UID generator and type registry.

/Rickard

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to