Quoting Anton Podviaznikov <[email protected]>:
and it retus empty list.
You need to call uow.complete() before any creation or updating of any entity that you did during that unit of work actually transfers into database. So just add call to uow.complete() in your addCompany(...) method after the System.out.println(...) call.
2. Another question regarding UnitOfWork. DO I use tham correctly? What is the pattern, when I should create new or use current?
That is completely domain-specific. You will notice quite quickly if you are using them incorrectly by either having bugs in your application or performance problems.
Of course, core devs might disagree with what I said here. ;) _______________________________________________ qi4j-dev mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/qi4j-dev

