Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] CDOBlob datatype(Misleading ecore validation for property: transient)
[CDO] CDOBlob datatype [message #1739090] Wed, 27 July 2016 13:34 Go to next message
Robert Schulk is currently offline Robert SchulkFriend
Messages: 144
Registered: July 2015
Senior Member
I am trying to use the datatype CDOBlob.
In project org.eclipse.emf.cdo.tests.model3, there is an example model which uses CDOBlob.

Now, my problem is that the ecore validation flags an error if I set my CDOBlob attribute to non-transient as is done in the test-model:

"The attribute 'MyContainer.blobTest' is not transient so it must have a data type that is serializable"

So what is the right setting for CDOBlob? I tried:

1) Non-Transient: this works, but ecore validation throws ugly errors.
2) Transient: changes are not persistent! (Ecore validation flags no errors though).

Can someone help me with this issue?
Thanks!
Robert
Re: [CDO] CDOBlob datatype [message #1739099 is a reply to message #1739090] Wed, 27 July 2016 14:03 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 27.07.2016 um 16:34 schrieb Robert Schulk:
> I am trying to use the datatype CDOBlob.
> In project org.eclipse.emf.cdo.tests.model3, there is an example model which uses CDOBlob.
>
> Now, my problem is that the ecore validation flags an error if I set my CDOBlob attribute to non-transient as is done
> in the test-model:
>
> "The attribute 'MyContainer.blobTest' is not transient so it must have a data type that is serializable"
>
> So what is the right setting for CDOBlob? I tried:
>
> 1) Non-Transient: this works, but ecore validation throws ugly errors.
> 2) Transient: changes are not persistent! (Ecore validation flags no errors though).
1) is the way to go.

I did not notice this before, but our test model3.ecore doesn't validate successfully, either. I'd like to investigate
that when I'm back from vacation. Please submit a bugzilla to remind me.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: [CDO] CDOBlob datatype [message #1739177 is a reply to message #1739099] Thu, 28 July 2016 06:20 Go to previous messageGo to next message
Robert Schulk is currently offline Robert SchulkFriend
Messages: 144
Registered: July 2015
Senior Member
Thanks for the reply. I created this bugzilla:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=498732
Re: [CDO] CDOBlob datatype [message #1741961 is a reply to message #1739099] Thu, 28 July 2016 06:20 Go to previous message
Robert Schulk is currently offline Robert SchulkFriend
Messages: 144
Registered: July 2015
Senior Member
Thanks for the reply. I created this bugzilla:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=498732
Previous Topic:[CDO] Custom configuration for Authenticator
Next Topic:difference between "eContents" and "eAllContents"
Goto Forum:
  


Current Time: Tue Apr 23 06:10:59 GMT 2024

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

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

Back to the top