Christian Beikov (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiZTkxNTc3Y2M2...
) / Improvement (
https://hibernate.atlassian.net/browse/HHH-16616?atlOrigin=eyJpIjoiZTkxNT...
) HHH-16616 (
https://hibernate.atlassian.net/browse/HHH-16616?atlOrigin=eyJpIjoiZTkxNT...
) Think about moving discriminator applying into the TableGroup/TableReference (
https://hibernate.atlassian.net/browse/HHH-16616?atlOrigin=eyJpIjoiZTkxNT...
)
Issue Type: Improvement Assignee: Unassigned Components: hibernate-core Created:
16/May/2023 07:10 AM Priority: Major Reporter: Christian Beikov (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
Issues like
https://hibernate.atlassian.net/browse/HHH-16494 would not be a problem if the
discriminator was part of the table group or table reference which an entity persister
produces.
I.e. if we ask a SingleTableEntityPersister to create a table group for a subclass, we
must also call applyDiscriminator to make sure the discriminator filter is applied. If the
table group is joined though applying the discriminator in the join predicate is not quite
right and we should rather use a subquery e.g. join (select * from single_table t where
t.discrim = ...)
(
https://hibernate.atlassian.net/browse/HHH-16616#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16616#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#100225- sha1:6805d32 )