RD: Fixed registration request repositories

This commit is contained in:
ipatini 2023-10-06 11:53:07 +03:00
parent 02ef309b24
commit dd6312d8f3
2 changed files with 6 additions and 3 deletions

View File

@ -1,9 +1,10 @@
package eu.nebulous.resource.discovery.registration.repository;
import eu.nebulous.resource.discovery.registration.model.ArchivedRegistrationRequest;
import eu.nebulous.resource.discovery.registration.model.RegistrationRequest;
import org.springframework.data.mongodb.repository.MongoRepository;
import java.util.List;
public interface ArchivedRegistrationRequestRepository extends MongoRepository<ArchivedRegistrationRequest, String> {
RegistrationRequest findByRequester(String requester);
List<ArchivedRegistrationRequest> findByRequester(String requester);
}

View File

@ -3,6 +3,8 @@ package eu.nebulous.resource.discovery.registration.repository;
import eu.nebulous.resource.discovery.registration.model.RegistrationRequest;
import org.springframework.data.mongodb.repository.MongoRepository;
import java.util.List;
public interface RegistrationRequestRepository extends MongoRepository<RegistrationRequest, String> {
RegistrationRequest findByRequester(String requester);
List<RegistrationRequest> findByRequester(String requester);
}