use of com.orientechnologies.orient.core.annotation.OBeforeSerialization in project orientdb by orientechnologies.
the class Account method toStream.
@OBeforeSerialization
public void toStream(final ODocument iDocument) {
if (thumbnail != null) {
// WRITE THE PHOTO IN AN EXTERNAL RECORD AS PURE BINARY
OBlob externalPhoto = new ORecordBytes(thumbnail);
iDocument.field("externalPhoto", externalPhoto);
}
}
Aggregations