
org.mongodb.morphia.DAO Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of morphia Show documentation
Show all versions of morphia Show documentation
Java Object Document Mapper for MongoDB
package org.mongodb.morphia;
import com.mongodb.MongoClient;
import org.mongodb.morphia.dao.BasicDAO;
/**
* Provides a basic DAO for use in applications
*
* @param the entity type
* @param the key type
* @deprecated use org.mongodb.morphia.dao.BasicDAO
*/
@Deprecated
public class DAO extends BasicDAO {
/**
* @param entityClass the type to use with this DAO
* @param mongoClient the client to use to talk to the database
* @param morphia the morphia instance to use
* @param dbName the database to connect to
*/
public DAO(final Class entityClass, final MongoClient mongoClient, final Morphia morphia, final String dbName) {
super(entityClass, mongoClient, morphia, dbName);
}
/**
* @param entityClass the type to use with this DAO
* @param ds the datastore to use
*/
public DAO(final Class entityClass, final Datastore ds) {
super(entityClass, ds);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy