![]() ![]() ![]() (em.createQuery(cq).getResultList()) //ExceptionĮxception (Eclipse Persistence Services - 2.5.0.v20130507-3faac2b): .QueryExceptionĮxception Description: Illegal use of getField() in expression. Subquery subquery = cq.subquery(Identity.class) (query.getResultList()) //Two recordsĬriteriaBuilder cb = em.getCriteriaBuilder() ĬriteriaQuery cq = cb.createQuery(Entity.class) Query query = em.createQuery("select r from Entity r where r in (select e.owner from Identity e)") I tested in war application in glassfish 4:ġ) JPQL this query is working as excected: INSERT INTO `identity` VALUES ('5', 'xxx') INSERT INTO `identity` VALUES ('4', 'ccc') INSERT INTO `identity` VALUES ('3', 'zzz') INSERT INTO `identity` VALUES ('2', 'yyy') INSERT INTO `identity` VALUES ('1', 'aaa') getters and class Identity implements Serializable String = "OWNER_ID", referencedColumnName = "ID") I found out that it is a mistake eclipselink.Ī little example with two class Entity implements Serializable String id I fixed this previously in my project with orm.xml like this:īut I have another error with picketlink + eclipselink. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |