the following code fails
em.createQuery("select f from Foo f where f.bars.name = ?1", Foo.class).setParameter(1, barName)
stacktrace:
[ObjectDB 2.2.4] Unexpected exception (Error 990) Generated by Java HotSpot(TM) 64-Bit Server VM 1.6.0_23 (on Windows 7 6.1). Please report this error on http://www.objectdb.com/database/issue/new com.objectdb.o.InternalException: java.lang.ClassCastException: com.objectdb.o.CLT cannot be cast to com.objectdb.o.UTY java.lang.ClassCastException: com.objectdb.o.CLT cannot be cast to com.objectdb.o.UTY at com.objectdb.o.QNF.B(QNF.java:878) at com.objectdb.o.QNF.y(QNF.java:745) at com.objectdb.o.QNF.j(QNF.java:246) at com.objectdb.o.QNF.p(QNF.java:480) at com.objectdb.o.QNF.j(QNF.java:179) at com.objectdb.o.QNF.i(QNF.java:126) at com.objectdb.o.QRC.y(QRC.java:287) at com.objectdb.o.QRC.v(QRC.java:206) at com.objectdb.o.QRC.u(QRC.java:163) at com.objectdb.o.QRM.UR(QRM.java:242) at com.objectdb.o.MST.UR(MST.java:878) at com.objectdb.o.WRA.UR(WRA.java:286) at com.objectdb.o.WSM.UR(WSM.java:113) at com.objectdb.o.QRR.g(QRR.java:220) at com.objectdb.o.QRR.b(QRR.java:143) at com.objectdb.jpa.JpaQuery.getSingleResult(JpaQuery.java:610)
f.bars is:
@OneToMany private Set<Bar> bars;
bars.name is just a String
in my test database i have one Foo entity with one Bar relation
thanks in advanced