Hi,
answers below:
Am 2013-12-16 09:11, schrieb Stefan Scheiber:
> I agree with you on point 1 that factories will have a dependency on the
> EDBObject interface. The question here is, as you mentioned, how stable
> this interface is.
I would say it is rather stable, since this interface has not been
changed for a long time now, even though it will change a little bit
soon (concerning the stage information. But if this makes troubles or
not have to be discussed with Svetoslav)
> I don't think I follow you regarding @OpenEngSBModelId.
> The problem is not whether the modelID is a UUID or not, but if it's
> mutable or not. I still think that naturally the id is immutable, otherwise
> when I change the id I'm actually changing the object (i.e. I'm referring
> to some other entity, i.e. I'm not really updating but inserting)
> I should have stated this maybe like this. Whatever is annotated with
> @OpenEngSBModelId shouldn't necessarily have a setter method. I would still
> argue that in most cases this field would have no setter.
It does make no difference if the model id is a UUID or something else.
The point I have is the following: the ID was designed so that the user
himself defines the ID, not the system. So, naturally, the ID needs to
be mutable : ) The fact that the OpenEngSB gives models with no defined
model id a new UUID was introduced, after the request from the
industrial site came, that there are some models where the user is not
interested to set an ID since the model is just a temporary "throw away"
model.
> Regarding the 3rd point I partially agree.
> The setter method might not be plain, but might do some other things,
> however i expect that the edb contains the object's state and not a
> derivation of its state.
The solution has been chosen some time ago where we had the problem that
some objects could not be saved by the EDB natively (since they had no
string equivalent built in). Nowadays we can solve such problems in the
EDBConverter. So, I suppose, it should be no problem to access the
properties directly. We just have to decide on that.
Kind regards
Felix