
package asa.dao;

import java.util.List;

import org.springframework.data.mongodb.repository.MongoRepository;
import asa.model.User;

public interface UserDAO extends MongoRepository<User, String> {

    public User findByUsername(String username);  
    public List<User> findByRole(String role);

}

@@ -115,24 +115,97 @@
 ort 
-asa.model.User;%0A
+org.springframework.stereotype.Repository;%0Aimport asa.model.User;%0A%0A@Repository(%22userDAO%22)
 %0Apub

Update UserDAO.java