Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » CDO: Dynamic model change supported with TeneoHibernateMapping?
CDO: Dynamic model change supported with TeneoHibernateMapping? [message #423008] Sun, 21 September 2008 09:35 Go to next message
Roger Stocker is currently offline Roger StockerFriend
Messages: 16
Registered: July 2009
Junior Member
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
Re: CDO: Dynamic model change supported with TeneoHibernateMapping? [message #423031 is a reply to message #423008] Sun, 21 September 2008 09:46 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
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
>


Previous Topic:[CDO] Does Store Supports readByVersion ?
Next Topic:Thanks for helping out on the ChangeRecorder
Goto Forum:
  


Current Time: Thu Apr 25 01:53:28 GMT 2024

Powered by FUDForum. Page generated in 0.02680 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top