package net.binggl.ninja.mongodb;

import java.io.Serializable;

import org.bson.types.ObjectId;
import org.mongodb.morphia.annotations.Id;
import org.mongodb.morphia.annotations.Property;

/**
 * Superclass for mapping mongodb morphia models
 * @author bihe (original author: skubiak)
 *
 */
public class MorphiaModel implements Serializable {
    private static final long serialVersionUID = -3141621127850129919L;

    @Id
    @Property("_id")
    protected ObjectId objectId;

    public ObjectId getId() {
        return this.objectId;
    }
}

@@ -540,10 +540,98 @@
 ;%0A    %7D%0A
+    %0A    public void setId(ObjectId objectId) %7B%0A        this.objectId = objectId;%0A    %7D%0A
 %7D%0A

Add setId to MorphiaModel