Hi there!
Trying to add a simple type expression with the criteria api like in your sample:
cb.equal(e.type(), cb.literal(Country.class));
results in the error:
Caused by: com.objectdb.o.UserException: Attempt to store an instance of a non persistable type java.lang.Class at com.objectdb.o.MSG.d(MSG.java:61) at com.objectdb.o.TYW.writeElement(TYW.java:223) at com.objectdb.o.QRR.l(QRR.java:424) at com.objectdb.o.QRR.g(QRR.java:230) at com.objectdb.o.QRR.b(QRR.java:151)
here's some other a little bit above:
Caused by: com.objectdb.o._PersistenceException: Attempt to store an instance of a non persistable type java.lang.Class at com.objectdb.o._PersistenceException.b(_PersistenceException.java:45) at com.objectdb.o.JPE.g(JPE.java:140) at com.objectdb.o.ERR.f(ERR.java:59) at com.objectdb.o.OBC.onObjectDBError(OBC.java:1485) at com.objectdb.jpa.JpaQuery.getSingleResult(JpaQuery.java:702)
when trying to get a result list. leaving it out removes the error, other filters like string equals etc. work just fine?
thanks for any help!
PS: Using ODB 2.3.3
Alex