Closed GoogleCodeExporter closed 8 years ago
Just took a look and agree this is simply wrong.
Original comment by john.spurlock
on 10 Nov 2012 at 6:26
This issue was closed by revision 89d319f4af50.
Original comment by john.spurlock
on 10 Nov 2012 at 6:29
"simply wrong" may be a little harsh. Couple of things:
1. I tried the example producer attached to this defect with the original
findEntityInfoForClass implementation and it works just fine (this is obvious
from looking at the code: Map.Entry isAssignableFrom HashMap.Entry.
2. Here is a comment that should have been placed at the top of toOEntity:
// find the type info for the object we are converting. Note that we don't
// do this lookup by entity set name: The EDM type of an entity set defines
// the *base* type of entities found in the set. If we are dealing with a
// object of a sub-type here, we wan't to convert it according to its actual
// type.
Given that, how do you guys propose we solve this issue?
Personally I think it is a reasonable assumption to make that an
InMemoryProducer only ever has a single Class<?> -to- InMemoryEntityInfo
mapping. This does not preclude having multiple entity sets that expose the
same EDM entity type.
Original comment by tony.ro...@gmail.com
on 13 Nov 2012 at 5:00
Original issue reported on code.google.com by
mark.los...@ca.com
on 6 Sep 2012 at 7:55