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