[teiid-issues] [JBoss JIRA] (TEIID-5395) Improvement of JPA translator join behavior
Steven Hawkins (JIRA)
issues at jboss.org
Fri Jun 29 19:37:00 EDT 2018
[ https://issues.jboss.org/browse/TEIID-5395?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13599166#comment-13599166 ]
Steven Hawkins edited comment on TEIID-5395 at 6/29/18 7:36 PM:
----------------------------------------------------------------
I think things look mostly good also. However it looks like the old import code of adding foreign keys based upon the collection side was for the case of a unidirectional relationship so that may need to come back.
There is also another (old) bug in that many to many relationships aren't generally handled properly as the code won't create a bridge table.
I'll start building up some unit tests around import.
was (Author: shawkins):
I think things look mostly good also. However it looks like the old import code of adding foreign keys based upon the collection side was for the case of a unidirectional relationship so that may need to come back.
There is also another bug in that many to many relationships aren't generally handled properly as the code won't create a bridge table.
I'll start building up some unit tests around import.
> Improvement of JPA translator join behavior
> -------------------------------------------
>
> Key: TEIID-5395
> URL: https://issues.jboss.org/browse/TEIID-5395
> Project: Teiid
> Issue Type: Bug
> Components: Misc. Connectors
> Affects Versions: 10.2.1
> Reporter: Harold Campbell
> Assignee: Steven Hawkins
> Fix For: 11.0
>
>
> The behavior of the JPA connector has a number of issues regarding entity relationships.
> * Implicit joins (those needed to get child entity id's) are made INNER JOINS, preventing getting any rows where the value would be null.
> * Something odd is done with *ToMany relationships which blows up the size of resultsets.
> * If a parent entity and a child entity use the same name for their id property, only one gets mapped.
> * It's not possible to join the same entity more than once.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the teiid-issues
mailing list