[CDO] Storing multivalue-attributes [message #617873] |
Tue, 22 April 2008 12:43 |
Stefan Winkler 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
|
|
|
Powered by
FUDForum. Page generated in 0.02445 seconds