Ok, that looks good.

Are you using JUnit (like AbstractQi4jTest) to run your code? And if
so, do you have the "create" and "lookup" in separate methods?
That would be explain it, since these stores (and indexing) will drop
the result between tests.

Cheers
Niclas

On Tue, May 18, 2010 at 5:29 AM, Anton Podviaznikov
<[email protected]> wrote:
>> Stanislav pointed out that you need uow.complete() before the indexing
>> picks up the changes. But if this is the actual code that should still
>> be the case. Question is how the Indexing subsystem is assembled.
>>
>> Niclas Hedhman, Software Developer
>> http://www.qi4j.org - New Energy for Java
>
> I found out just one indexing subsytem.
> I've used RdfMemoryStoreAssembler.
>
> So in my test I overrided assemple method:
>    �...@override
>     public void assemble(ModuleAssembly module) throws AssemblyException
>     {
>         new RdfMemoryStoreAssembler().assemble(module);
>         // Entity store
>         module.addServices( MemoryEntityStoreService.class,
> UuidIdentityGeneratorService.class )
>             .visibleIn(Visibility.application )
>             .instantiateOnStartup();
>
>         module.addEntities(Company.class);
>         module.addServices(
>                 CompanyService.class);
>     }
>
> So that all. Was it correct? Still have no comanies returned.
>
> Thanks for your help.
> _______________________________________________
> qi4j-dev mailing list
> [email protected]
> http://lists.ops4j.org/mailman/listinfo/qi4j-dev
>
>



-- 
Niclas Hedhman, Software Developer
http://www.qi4j.org - New Energy for Java

I  live here; http://tinyurl.com/2qq9er
I  work here; http://tinyurl.com/2ymelc
I relax here; http://tinyurl.com/2cgsug

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

Reply via email to