Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [CDO] Storing multivalue-attributes
[CDO] Storing multivalue-attributes [message #617873] Tue, 22 April 2008 12:43
Stefan Winkler is currently offline Stefan WinklerFriend
Messages: 307
Registered: July 2009
Location: Germany
Senior Member
Hi Eike,

I have reached a point in development, where I'd like to store an
EAttribute with upperBound = -1.
If the EAttribute type is String, EMF generates getMyAttribute() :
EList<String>
What reaches MySQLAdapter.appendValue() is a MoveableArrayList<String>.
As nobody in the DBAdapter - DBField chain knows how to deal with
MoveableArrayLists, this results in a failing SQL statement.

=> filed Bug 228190 <https://bugs.eclipse.org/bugs/show_bug.cgi?id=228190>

Other than with the Date type, which I patched (see Bug 217255
<https://bugs.eclipse.org/bugs/show_bug.cgi?id=217255>), and for which
deserialization works out of the box, with this case, I do not really
know, what to do.

I guess to be able to achieve serialization, the DBField, DBAdapter and
maybe something in cdo.server.internal.db.* have to be extended. So one
could think of a way to serialize such an attribute as a Blob, but then,
the natural way would be to create an own table.

Do you have an idea, how this can be handled, or can you provide a
quickfix for that issue?

How is the CDO-Teneo-Hibernate-Mapping getting along? When will it be
useable as an alternative in order to work around the problems with the
MySQL database support?

Cheers,
Stefan
Previous Topic:[Teneo][CDO-Hibernate] Problem with CDOFeatures identity
Next Topic:[CDO] Storing multivalue-attributes
Goto Forum:
  


Current Time: Fri Apr 26 04:57:22 GMT 2024

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

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

Back to the top