I've downloaded tests, and they realy works fine, but in my environment group tasks list is alway empty.
Today I've found the problem.
I've traced querries to MySql DB, and if I start TasksServer (i.e. Mina) in J2SE environment it makes different calls to DB.
When I start TasksServer in J2EE environment (EJB 3.1 and JPA 2.0) it's generates 2 extra joins in query:
inner join tasks.OrganizationalEntity user7_ on task0_.actualOwner_id=user7_.id
inner join tasks.OrganizationalEntity user8_ on task0_.createdBy_id=user8_.id
So group task has empty values in actualOwner_id and createdBy_id columns (because it's group task (-: ) and result is always empty.
Any suggestion how to tell hibernate not to add extra joins?