[jira] [Commented] (OLINGO-1095) JPAQueryBuilder.normalizeMembers encounters issue when EmbedId

2017-04-05 Thread evildracula (JIRA)

[ 
https://issues.apache.org/jira/browse/OLINGO-1095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15958212#comment-15958212
 ] 

evildracula commented on OLINGO-1095:
-

Never mind, javac and maven plugin can pass. Looks like the Eclipse compiler 
issue.
When using IntelliJ, it returns error when compiler is eclipse compiler, but no 
error shows when it's javac compiler.

> 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: evildracula
>Assignee: Michael Bolz
> Fix For: V2 2.0.9
>
> Attachments: TypeCastSc1.png, TypeCastSc2.png
>
>
> 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.pid= 'T001' AND E1.id.rid= 'E001'
> the normalized query will be:
> SELECT DISTINCT E1 FROM EndUser E1 JOIN E1.id R1 WHERE R1.pid = 'T001' AND 
> R1.rid = '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)


[jira] [Commented] (OLINGO-1095) JPAQueryBuilder.normalizeMembers encounters issue when EmbedId

2017-04-05 Thread Michael Bolz (JIRA)

[ 
https://issues.apache.org/jira/browse/OLINGO-1095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15957226#comment-15957226
 ] 

Michael Bolz commented on OLINGO-1095:
--

Hi [~evildracula],

I'am really sorry but neither I can re-produce your issue nor can I understand 
the problem of the Eclipse? compiler.
Do you know what Java compiler is used by your Eclipse?

Best regards, Michael

> 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: evildracula
>Assignee: Michael Bolz
> Fix For: V2 2.0.9
>
> Attachments: TypeCastSc1.png, TypeCastSc2.png
>
>
> 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.pid= 'T001' AND E1.id.rid= 'E001'
> the normalized query will be:
> SELECT DISTINCT E1 FROM EndUser E1 JOIN E1.id R1 WHERE R1.pid = 'T001' AND 
> R1.rid = '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)