Skip to content

Commit

Permalink
deprecate the DAO types
Browse files Browse the repository at this point in the history
resolves #1313
  • Loading branch information
evanchooly committed Jan 24, 2019
1 parent 0452642 commit 5899292
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions morphia/src/main/java/xyz/morphia/dao/BasicDAO.java
Expand Up @@ -25,7 +25,9 @@
* @param <K> the type of the key
* @author Olafur Gauti Gudmundsson
* @author Scott Hernandez
* @deprecated This interface poorly tracks Datastore's API. Use Datastore directly or wrap in an application specific DAO
*/
@Deprecated
@SuppressWarnings({"WeakerAccess", "deprecation", "unused"})
public class BasicDAO<T, K> implements DAO<T, K> {
//CHECKSTYLE:OFF
Expand Down
2 changes: 2 additions & 0 deletions morphia/src/main/java/xyz/morphia/dao/DAO.java
Expand Up @@ -18,7 +18,9 @@
*
* @param <T> The Java type serviced by this DAO
* @param <K> The Key type used by the entity
* @deprecated This interface poorly tracks Datastore's API. Use Datastore directly or wrap in an application specific DAO
*/
@Deprecated
public interface DAO<T, K> {
/**
* @return the total count
Expand Down
1 change: 1 addition & 0 deletions morphia/src/test/java/xyz/morphia/testdaos/HotelDAO.java
Expand Up @@ -25,6 +25,7 @@
/**
* @author Olafur Gauti Gudmundsson
*/
@Deprecated
public class HotelDAO extends BasicDAO<Hotel, ObjectId> {

public HotelDAO(final Morphia morphia, final MongoClient mongoClient) {
Expand Down

0 comments on commit 5899292

Please sign in to comment.