@@ -0,0 +1,1300 @@
+package com.mysema.query.domain;%0A%0Aimport static org.junit.Assert.assertNotNull;%0A%0Aimport java.util.HashSet;%0Aimport java.util.Set;%0A%0Aimport javax.persistence.Embeddable;%0Aimport javax.persistence.EmbeddedId;%0Aimport javax.persistence.Entity;%0Aimport javax.persistence.ManyToOne;%0Aimport javax.persistence.OneToMany;%0A%0Aimport org.junit.Test;%0A%0Aimport com.mysema.query.annotations.QueryInit;%0Aimport com.mysema.query.types.expr.BooleanExpression;%0A%0Apublic class AnyPathTest %7B%0A    @Entity%0A    public static class Foo %7B%0A%0A        @OneToMany(mappedBy = %22key.foo%22)%0A        @QueryInit(%22key.student%22)%0A        private Set%3CBar%3E bars = new HashSet%3CBar%3E();%0A%0A    %7D%0A%0A    @Entity%0A    public static class Bar %7B%0A%0A        @EmbeddedId%0A        @QueryInit(%22student%22)%0A        private BarId key = new BarId();%0A%0A    %7D%0A%0A    @Embeddable%0A    public static class BarId %7B%0A%0A        @ManyToOne%0A        private Student student;%0A%0A        @ManyToOne%0A        private Foo foo;%0A%0A    %7D%0A%0A    @Entity%0A    public static class Student %7B%0A%0A    %7D%0A%0A    private BooleanExpression authorFilter(Student student)%7B%0A        //return QFoo.foo.bars.any().key.student.eq(Student student);%0A        return QAnyPathTest_Foo.foo.bars.any().key.student.eq(student);%0A    %7D%0A%0A    @Test%0A    public void AnyPath() %7B%0A        assertNotNull(authorFilter(new Student()));%0A    %7D%0A%0A%7D%0A

Add test #482