package net.binggl.ninja.mongodb;

import java.io.Serializable;

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

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

    @Id
    protected ObjectId objectId;

    public ObjectId getId() {
        return this.objectId;
    }
}
@@ -132,16 +132,65 @@
 ions.Id;
+%0Aimport org.mongodb.morphia.annotations.Property;
 %0A%0A/**%0A *
@@ -419,16 +419,37 @@
     @Id%0A
+    @Property(%22_id%22)%0A
     prot
@@ -541,8 +541,9 @@
 %0A    %7D%0A%7D
+%0A

Standardize id attribute