Marco Belladelli (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=637b480...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiNjNkZjg5YzQ5...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16238?atlOrigin=eyJpIjoiNjNkZj...
) HHH-16238 (
https://hibernate.atlassian.net/browse/HHH-16238?atlOrigin=eyJpIjoiNjNkZj...
) Add support for mulitple generic embeddable properties in MappedSuperclass (
https://hibernate.atlassian.net/browse/HHH-16238?atlOrigin=eyJpIjoiNjNkZj...
)
Issue Type: Bug Affects Versions: 6.2.0.CR2 Assignee: Unassigned Created: 28/Feb/2023
03:41 AM Priority: Major Reporter: Marco Belladelli (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=637b480...
)
At the moment an @Entity can extend a @MappedSuperclass which has two or more generic
embeddable properties. This will work, but when trying to query the actual properties
inside the *concrete* embeddable types (as opposed to the generic ones) an error will be
thrown because we have no way of retrieving them.
https://hibernate.atlassian.net/browse/HHH-16195 (
https://hibernate.atlassian.net/browse/HHH-16195 ) fixes embeddable-typed
declaredProperties registration for generic embeddables on the superclass, and
https://hibernate.atlassian.net/browse/HHH-16188 (
https://hibernate.atlassian.net/browse/HHH-16188 ) has prepared a foundation to register
the actual concrete embeddable types that for now is only used for identifiers:
*
org.hibernate.metamodel.model.domain.AbstractManagedType.InFlightAccessImpl#applyGenericEmbeddableAttribute
* org.hibernate.metamodel.model.domain.AbstractManagedType#findGenericEmbeddableAttribute
This issue should address resolving concrete embeddable types for non-identifier
properties.
(
https://hibernate.atlassian.net/browse/HHH-16238#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16238#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100217- sha1:65be9f2 )