It's tempting to try using
instanceof
and casting it to the right object type, but because it's a proxy instanceof doesn't work. There is a way to "cast" it to the right object type, but it involves getting the object out of the proxy, and as you can imagine you would lose your Hibernatey-ness.
Or of course you could just query for the child object.
Useful links:
This comment has been removed by the author.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDelete