|
Re: CDO: Dynamic model change supported with TeneoHibernateMapping? [message #423031 is a reply to message #423008] |
Sun, 21 September 2008 09:46 |
|
Hi Roger,
In general an EPackage with a given nsURI is expected not to change once
it is made available to the public. If you need to change the contents
of an EPackage it's stringly recommended that you also change the nsURI
(e.g. increment an embedded version identifier) and migrate the existing
data appropriately.
CDO is no exception from this general recommendation. Once a CDOPackage
has been committed to a repository (that is an instance of one of its
contained EClasses has been attached to the managed containment tree)
this package must not be redefined anymore.
The topic automatic "model evolution" has been discussed several times
here and elsewhere. We have no plans to support it anytime soon.
Enjoy your weekend
/Eike
Roger schrieb:
> Hi
>
> Is it supported to change a dynamic model package in CDO when using
> Teneo/Hibernate?
>
> If yes, can you point me in the right direction? I see in
> HibernatePackageHandler.writePackage() that the new packages are being
> checked if they are equal:
> if (cdoPackageExistsAndIsUnchanged(cdoPackage)) ...
>
> But it will never be called, because the package is not considered to
> be new, thats why in HibernateStoreWriter, there is no package left
> when calling
> writePackages(context.getNewPackages());
>
> Maybe I am missing some information. Could you please help me with this?
>
> Thanks and Regards
> Roger
>
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Powered by
FUDForum. Page generated in 0.03021 seconds