Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TEIID-5404: translator-jpa: Improve Embedded mappings handling. #1088

Merged
merged 1 commit into from
Jul 3, 2018

Conversation

Traivor
Copy link
Contributor

@Traivor Traivor commented Jun 29, 2018

This prevents column collisions and query failures involving Embedded
mappings by keeping track of the ManagedType traversal. Fragments of the
path are joined by '_' to form the column name. They are joined by '.'
and stored in nameInSource to be used in JPQL queries.

This prevents column collisions and query failures involving Embedded
mappings by keeping track of the ManagedType traversal. Fragments of the
path are joined by '_' to form the column name. They are joined by '.'
and stored in nameInSource to be used in JPQL queries.
@Traivor
Copy link
Contributor Author

Traivor commented Jun 30, 2018

This also allows for an Enum property inside an embedded PK. I forgot to break that out into a separate commit, but can do so upon request.

@rareddy
Copy link
Member

rareddy commented Jul 3, 2018

Looks good to me

@rareddy rareddy merged commit 8ceaf45 into teiid:master Jul 3, 2018
shawkins pushed a commit that referenced this pull request Jul 5, 2018
This prevents column collisions and query failures involving Embedded
mappings by keeping track of the ManagedType traversal. Fragments of the
path are joined by '_' to form the column name. They are joined by '.'
and stored in nameInSource to be used in JPQL queries.
shawkins pushed a commit that referenced this pull request Jul 5, 2018
This prevents column collisions and query failures involving Embedded
mappings by keeping track of the ManagedType traversal. Fragments of the
path are joined by '_' to form the column name. They are joined by '.'
and stored in nameInSource to be used in JPQL queries.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants