Hui YUAN created OLINGO-1095:
--------------------------------

             Summary: JPAQueryBuilder.normalizeMembers encounters issue when 
EmbedId
                 Key: OLINGO-1095
                 URL: https://issues.apache.org/jira/browse/OLINGO-1095
             Project: Olingo
          Issue Type: Bug
          Components: odata2-core
    Affects Versions: V2 2.0.8
            Reporter: Hui YUAN


org.apache.olingo.odata2.jpa.processor.core.access.data.JPAQueryBuilder
normalizeMembers failed to process EmbedKeyId when JPA query is:
SELECT E1 FROM EndUser E1 WHERE E1.id.tenantId = 'T001' AND E1.id.userId = 
'E001'

the normalized query will be:
SELECT DISTINCT E1 FROM EndUser E1 JOIN E1.id R1 WHERE R1.tenantId = 'T001' AND 
R1.userId = 'E001'

|This will cause problem when validated by boolean 
org.eclipse.persistence.jpa.jpql.AbstractSemanticValidator.validateCollectionValuedPathExpression(Expression
 expression, boolean collectionTypeOnly)|




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to