| As I said, you don't have to avoid getReference, just make sure that when you depend on the actual type, you detach a proxy and load the actual object. You forgot to list the possibility to use an additional (read-only) entity mapping for cases when you only want to reference an object, regardless of it's actual type. I'd like to hear other opinions too. |