http://opensource.atlassian.com/project ... se/ANN-314
However, I don't fully understand the response there:
"you misunderstood polymorphism.
polymorphism explicit only applies on root entities and prevent queries naming a (unmapped) superclass to return mapped sub entities
if your case if ObjectA were not mapped and ObjectB were having polymorphism explicit, then from ObjectA would not return ObjectB elements"
Why does this only apply to "root entities?" Is there a way to have both ObjectA and ObjectB mapped, but restrict Hibernate from looking for ObjectB's unless explicitly told to (in other words, not included as part of a polymorphic query)?
Thanks.