RD: Fixed registration request repositories
This commit is contained in:
parent
02ef309b24
commit
dd6312d8f3
@ -1,9 +1,10 @@
|
|||||||
package eu.nebulous.resource.discovery.registration.repository;
|
package eu.nebulous.resource.discovery.registration.repository;
|
||||||
|
|
||||||
import eu.nebulous.resource.discovery.registration.model.ArchivedRegistrationRequest;
|
import eu.nebulous.resource.discovery.registration.model.ArchivedRegistrationRequest;
|
||||||
import eu.nebulous.resource.discovery.registration.model.RegistrationRequest;
|
|
||||||
import org.springframework.data.mongodb.repository.MongoRepository;
|
import org.springframework.data.mongodb.repository.MongoRepository;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
public interface ArchivedRegistrationRequestRepository extends MongoRepository<ArchivedRegistrationRequest, String> {
|
public interface ArchivedRegistrationRequestRepository extends MongoRepository<ArchivedRegistrationRequest, String> {
|
||||||
RegistrationRequest findByRequester(String requester);
|
List<ArchivedRegistrationRequest> findByRequester(String requester);
|
||||||
}
|
}
|
||||||
|
@ -3,6 +3,8 @@ package eu.nebulous.resource.discovery.registration.repository;
|
|||||||
import eu.nebulous.resource.discovery.registration.model.RegistrationRequest;
|
import eu.nebulous.resource.discovery.registration.model.RegistrationRequest;
|
||||||
import org.springframework.data.mongodb.repository.MongoRepository;
|
import org.springframework.data.mongodb.repository.MongoRepository;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
public interface RegistrationRequestRepository extends MongoRepository<RegistrationRequest, String> {
|
public interface RegistrationRequestRepository extends MongoRepository<RegistrationRequest, String> {
|
||||||
RegistrationRequest findByRequester(String requester);
|
List<RegistrationRequest> findByRequester(String requester);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user