Comment 3 for bug 841568

Revision history for this message
Timo Westkämper (timo-westkamper) wrote :

I made some small modifications to Querydsl APT and now you can solve the problem like this :

    @Entity
    class A2 extends A {

        // return B instead of B2
        @Column
        int foo;

        A2(B2 b2) {
            super(b2);
        }

        @Override
        @QueryType(PropertyType.ENTITY)
        B2 getB() {
            return (B2) super.getB();
        }
    }

In this case both field and getter annotations are taken into account.