Thanks for replying, I am aware of Hibernate.isInstance() and Hibernate.unproxy() methods but if possible I’d like to be able to write idiomatic Java code, for instance:
Instead of:
One benefit of having the right class is that we wouldn’t need to trigger a load if we just need an instanceof test. I’ve got to admit that I’m not familiar with @Any so I’ll look into that 👍 Some of the associations I have are collections fetched using the new `@SQLSelect` so I’m sure sure if that scenario would be supported. Assuming that item now needs a discriminator, I would need to tell Hibernate where that new column would be, but JPA’s @FieldResult` does not support it, right?
|