Skip to main content



      Home
Home » Modeling » EMF » (no subject)
(no subject) [message #687194] Tue, 14 June 2011 03:59 Go to next message
Eclipse UserFriend
Is it possible, that if a CDO object is already stored in the database,
that the object can be changed later to be instance of a subtype of the
original type?
From the logical aspect, this should cause no big problems since all
references between this object and other objects remain unaffected. From
the aspect of modelling, it supports a top-down modelling approach
somehow, i.e. users want to refine existing elements. So if this feature
not yet exists, it would be nice to have.
(no subject) [message #687195 is a reply to message #687194] Tue, 14 June 2011 04:38 Go to previous message
Eclipse UserFriend
Am 14.06.2011 09:59, schrieb exquisitus:
> Is it possible, that if a CDO object is already stored in the database, that the object can be changed later to be instance of a subtype of the original type?
What is the original type?

The EClass and the CDOID of a CDOObject can not change over time or over branches.

> From the logical aspect, this should cause no big problems since all references between this object and other objects remain unaffected.
It's weird from the perspective of auditing or branching if an object all of a sudden changes its type. Technically it's impossible because generated EObjects are Java objects and those can't change their class.

> From the aspect of modelling, it supports a top-down modelling approach somehow, i.e. users want to refine existing elements. So if this feature not yet exists, it would be nice to have.
I don't see what *common* problems this feature would solve. This feature is not likely making it to the public code base.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
(no subject) [message #687456 is a reply to message #687194] Tue, 14 June 2011 04:38 Go to previous message
Eclipse UserFriend
Am 14.06.2011 09:59, schrieb exquisitus:
> Is it possible, that if a CDO object is already stored in the database, that the object can be changed later to be instance of a subtype of the original type?
What is the original type?

The EClass and the CDOID of a CDOObject can not change over time or over branches.

> From the logical aspect, this should cause no big problems since all references between this object and other objects remain unaffected.
It's weird from the perspective of auditing or branching if an object all of a sudden changes its type. Technically it's impossible because generated EObjects are Java objects and those can't change their class.

> From the aspect of modelling, it supports a top-down modelling approach somehow, i.e. users want to refine existing elements. So if this feature not yet exists, it would be nice to have.
I don't see what *common* problems this feature would solve. This feature is not likely making it to the public code base.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Previous Topic:(no subject)
Next Topic:(no subject)
Goto Forum:
  


Current Time: Sun Jul 27 07:51:54 EDT 2025

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

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

Back to the top