The entity names suggest that inheritance is involved. Could you post the model or even better, a reproducing test case so we can take a look. This is obviously a missed opportunity for an optimization that we should take.