Christian Beikov (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-16180 (
https://hibernate.atlassian.net/browse/HHH-16180?atlOrigin=eyJpIjoiNTFlNz...
)
Re: AssertionError when using using native query on table with InheritanceStrategy.JOINED
(
https://hibernate.atlassian.net/browse/HHH-16180?atlOrigin=eyJpIjoiNTFlNz...
)
Note that your test case is kind of broken, as you rely on fetching the entity from the
first level cache i.e. persistence context and it would fail if the entity were not
contained there. Try clearing the entity manager after flushing to see the test case fail
even on 5.
We will clarify the requirements for native queries that want to materialize entities as
part of
https://github.com/hibernate/hibernate-orm/pull/6194 (
https://github.com/hibernate/hibernate-orm/pull/6194 )
(
https://hibernate.atlassian.net/browse/HHH-16180#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16180#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 )