On Tue, May 6, 2008 at 8:22 PM, Peter Neubauer <[EMAIL PROTECTED]> wrote:
> Yes,
> something like "you need to have Entity interface in your class
> hirachy for this ...."
No it works the other way around...
public interface AbcEntity extends Abc, EntityComposite
{}
public interface Abc extends Def
{}
and you do a
uow.find( "1234", Def.class );
It will locate all Composites that has a Def inherited, and if finding
one and only one, it will resolve to that EntityComposite (AbcEntity
in this case).
Cheers
Niclas
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev