
de.svenkubiak.mangooio.morphia.MorphiaModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mangooio-mongodb-extension Show documentation
Show all versions of mangooio-mongodb-extension Show documentation
This is an extension for the mangoo I/O framework to work with MongoDB and optional moprhia (a MongoDB ODM) by providing convinent services, all required dependencies and some testing utilities.
package de.svenkubiak.mangooio.morphia;
import java.io.Serializable;
import org.bson.types.ObjectId;
import org.mongodb.morphia.annotations.Id;
/**
* Convenient Superclass for mapping MongoDB Morphia models
*
* @author svenkubiak
*
*/
public class MorphiaModel implements Serializable {
private static final long serialVersionUID = -3141621127850129919L;
@Id
protected ObjectId objectId;
public ObjectId getId() {
return this.objectId;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy