cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject Inheritance Question
Date Thu, 12 Dec 2013 09:30:33 GMT
Hi All

I have a dbEntity say ClassOne (its lightweight) and another that inherits 
from it as ClassTwo (its heavyweight).

Now in my case I have a prefetch that retrieves ClassOne objects.

The problem that I have is that Cayenne is fetching ClassTwo data as well ?!

Surely Cayenne should only be fetching the ClassOne data, why is ClassTwo 
data also being retrieved ?

Is this the intended behaviour ?   Is there a way to prevent it ?

Thanks, Jurgen

View raw message