Looks like native queries on entities with embedded ids fails with an assertion failure. The EntityKey does not seem to be constructed properly.
The reproducible test case is at https://forum.hibernate.org/viewtopic.php?f=31&t=1037586&p=2482256#p2482256
|