![JAR search and dependency download from the Maven repository](/logo.png)
ninja.morphia.NinjaMorphiaModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ninja-morphia-module Show documentation
Show all versions of ninja-morphia-module Show documentation
This is an easly plugable module for the Ninja web framework to work with morphia and mongodb by providing a convinent service, providing you with all dependencies and some testing utilites.
The newest version!
package ninja.morphia;
import java.io.Serializable;
import org.bson.types.ObjectId;
import org.mongodb.morphia.annotations.Id;
/**
* Superclass for mapping mongodb morphia models
* @author svenkubiak
*
*/
public class NinjaMorphiaModel 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