[CDO] legacy model support [message #423476] |
Tue, 30 September 2008 18:47  |
Eclipse User |
|
|
|
It seems like legacy model support is not available in 1.0. Will 2.0
support it, and if not, when will it be supported?
|
|
|
|
|
|
|
|
|
|
|
|
Re: [CDO] legacy model support [message #423538 is a reply to message #423531] |
Wed, 01 October 2008 16:55  |
Eclipse User |
|
|
|
Tom Crockett schrieb:
> Eike Stepper wrote:
>
>> Tom Crockett schrieb:
>>> Well, whether I do that or not, it doesn't seem to work. What I'm
>>> currently seeing when I step through the code is that my dynamic
>>> package shows up and has a corresponding CDOPackage created for it
>>> by the self-populating (or eager) registry, but for some reason its
>>> "persistent" field is set to true, so it doesn't get passed across
>>> to the server as a new package. Then the server doesn't recognize
>>> the package, and throws an exception. What am I doing wrong?
>> Only that you're working on your 50th birthday ;-) Congratulations!
>
> I think you may have me confused with someone else--I'm 27 ;)
I just saw a TV spot about the 50th annversary of the NASA ;-)
>
>> It sounds like a smal bug for this special case. Can you please file
>> a Bugzilla so that you can track the prgress?
>
> I have since made my own CDOPackageRegistry extends SessionBound,
> which is a copy of SelfPopulating, but whose sessionActivated method
> looks like this:
>
> for (String key: new
> HashSet<String>(EPackage.Registry.INSTANCE.keySet()) {
> EPackage pkg = EPackage.Registry.INSTANCE.getEPackage(key);
> if (pkg.getESuperPackage() == null)
> // check is to prevent IllegalArgumentException
> putEPackage(pkg);
>
> CDOPackageTypeRegistry.INSTANCE.addListener(typeListener);
> }
>
> This seems to work pretty well, because putEPackage() both creates a
> CDO package if necessary and sets persisted to false. Does this seem
> like a reasonable workaround?
>
> I filed a bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=249383
>
|
|
|
Powered by
FUDForum. Page generated in 1.04400 seconds