Hi
In Vertex I want to store field with type like LinkMap but with additional
property.
Something like this:
key="something"
value=@rid+Boolean
So first I thought about Map with custom object as Value type
class Custom {
private ORID rid;
private Boolean read;
//...
}
Map<String, Custom> map;
But first question:
How should I declare field type? (CREATE PROPERTY Vertex.map ???? )
Second:
Above code (when I commit transaction after putting filed with type
Map<String, Custom>) gives me error :
com.orientechnologies.orient.core.exception.OTransactionException: Error on
transaction commit
at
com.orientechnologies.orient.client.remote.OStorageRemote.commitEntry(OStorageRemote.java:1925)
at
com.orientechnologies.orient.client.remote.OStorageRemote.commit(OStorageRemote.java:1047)
at
com.orientechnologies.orient.client.remote.OStorageRemoteThread.commit(OStorageRemoteThread.java:420)
at
com.orientechnologies.orient.core.tx.OTransactionOptimistic.commit(OTransactionOptimistic.java:74)
at
com.orientechnologies.orient.core.db.record.ODatabaseRecordTx.commit(ODatabaseRecordTx.java:115)
at
com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.commit(ODatabaseDocumentTx.java:454)
at
com.tinkerpop.blueprints.impls.orient.OrientTransactionalGraph.commit(OrientTransactionalGraph.java:68)
(...)
Caused by:
com.orientechnologies.orient.core.exception.OSerializationException: Cannot
serialize the object since it's not implements the OSerializableStream
interface
at
com.orientechnologies.orient.core.serialization.serializer.string.OStringSerializerEmbedded.toStream(OStringSerializerEmbedded.java:49)
at
com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerStringAbstract.fieldTypeToString(ORecordSerializerStringAbstract.java:264)
at
com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerCSVAbstract.embeddedMapToStream(ORecordSerializerCSVAbstract.java:526)
at
com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerCSVAbstract.fieldToStream(ORecordSerializerCSVAbstract.java:450)
at
com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerSchemaAware2CSV.toString(ORecordSerializerSchemaAware2CSV.java:279)
at
com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerStringAbstract.toStream(ORecordSerializerStringAbstract.java:92)
at
com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerSchemaAware2CSV.toStream(ORecordSerializerSchemaAware2CSV.java:518)
at
com.orientechnologies.orient.core.record.ORecordSchemaAwareAbstract.toStream(ORecordSchemaAwareAbstract.java:127)
at
com.orientechnologies.orient.core.record.ORecordSchemaAwareAbstract.toStream(ORecordSchemaAwareAbstract.java:122)
at
com.orientechnologies.orient.core.record.impl.ODocument.toStream(ODocument.java:391)
at
com.orientechnologies.orient.client.remote.OStorageRemote.commitEntry(OStorageRemote.java:1919)
... 36 more
I use OrientDB 1.6.4
Any help appreciated
--
---
You received this message because you are subscribed to the Google Groups
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.