Tom,
As far as I know TopLink Essential maintains one *ClassDescriptor* per
*JavaClass* in the Project object (there is Map<Class, ClassDescriptor>
in Project). This is why I suggest we throw an exception if an
embeddable that has no metadata in it is used in entities with
conflicting access-types.
I don't understand why Marina mantioned that TopLink creates a copy of
the model for each use of the embeddable class and you also agreed with
her. Can you please clarify this?
Thanks,
Sahoo
Tom Ware wrote:
> That corresponds with my understanding.
>
> -Tom
>
> Marina Vatkina wrote:
>
>> Sahoo, Team,
>>
>> We discussed with Tom the short term requirements to fix this issue, and
>> agreed that for now we should not change the behavior supported by the
>> current code. Tom, please correct me if I miss anything.
>>
>> TopLink is able to support sharing an Embeddable between 2 entities with
>> different access type, because it creates a copy of the model for each
>> owner. Which means that the best current approach to fix this bug (we
>> can
>> continue philosophical discussions about the features) should be: