ddangelorb
3 years ago
13 changed files with 71 additions and 71 deletions
-
42src/main/java/org/waterproofingdata/wpdauth/controller/ForgotPasswordsController.java
-
2src/main/java/org/waterproofingdata/wpdauth/dto/ForgotPasswordsQuestionsResponseDTO.java
-
2src/main/java/org/waterproofingdata/wpdauth/dto/ForgotPasswordsQuestionsUsersAnswersRequestDTO.java
-
2src/main/java/org/waterproofingdata/wpdauth/model/ForgotPasswordsKeys.java
-
2src/main/java/org/waterproofingdata/wpdauth/model/ForgotPasswordsQuestions.java
-
2src/main/java/org/waterproofingdata/wpdauth/model/ForgotPasswordsQuestionsUsersAnswers.java
-
7src/main/java/org/waterproofingdata/wpdauth/repository/ForgotPasswordQuestionsRepository.java
-
10src/main/java/org/waterproofingdata/wpdauth/repository/ForgotPasswordQuestionsUsersAnswersRepository.java
-
6src/main/java/org/waterproofingdata/wpdauth/repository/ForgotPasswordsKeysRepository.java
-
7src/main/java/org/waterproofingdata/wpdauth/repository/ForgotPasswordsQuestionsRepository.java
-
10src/main/java/org/waterproofingdata/wpdauth/repository/ForgotPasswordsQuestionsUsersAnswersRepository.java
-
42src/main/java/org/waterproofingdata/wpdauth/service/ForgotPasswordsService.java
-
8src/test/java/org/waterproofingdata/wpdauth/integrationtest/ForgotPasswordServiceIntegrationTest.java
@ -1,7 +0,0 @@ |
|||
package org.waterproofingdata.wpdauth.repository; |
|||
|
|||
import org.springframework.data.jpa.repository.JpaRepository; |
|||
import org.waterproofingdata.wpdauth.model.ForgotPasswordQuestions; |
|||
|
|||
public interface ForgotPasswordQuestionsRepository extends JpaRepository<ForgotPasswordQuestions, Integer> { |
|||
} |
@ -1,10 +0,0 @@ |
|||
package org.waterproofingdata.wpdauth.repository; |
|||
|
|||
import org.springframework.data.jpa.repository.JpaRepository; |
|||
import org.springframework.data.jpa.repository.Query; |
|||
import org.waterproofingdata.wpdauth.model.ForgotPasswordQuestionsUsersAnswers; |
|||
|
|||
public interface ForgotPasswordQuestionsUsersAnswersRepository extends JpaRepository<ForgotPasswordQuestionsUsersAnswers, Integer> { |
|||
@Query(value = "SELECT fqua.* FROM forgotpassword_questions_users_answers fqua WHERE fqua.forgotpassword_questions_id = ?1 AND fqua.users_id = ?2", nativeQuery = true) |
|||
ForgotPasswordQuestionsUsersAnswers findByForgotPasswordQuestionsAndUserid(Integer forgotpasswordquestionsid, Integer usersid); |
|||
} |
@ -0,0 +1,7 @@ |
|||
package org.waterproofingdata.wpdauth.repository; |
|||
|
|||
import org.springframework.data.jpa.repository.JpaRepository; |
|||
import org.waterproofingdata.wpdauth.model.ForgotPasswordsQuestions; |
|||
|
|||
public interface ForgotPasswordsQuestionsRepository extends JpaRepository<ForgotPasswordsQuestions, Integer> { |
|||
} |
@ -0,0 +1,10 @@ |
|||
package org.waterproofingdata.wpdauth.repository; |
|||
|
|||
import org.springframework.data.jpa.repository.JpaRepository; |
|||
import org.springframework.data.jpa.repository.Query; |
|||
import org.waterproofingdata.wpdauth.model.ForgotPasswordsQuestionsUsersAnswers; |
|||
|
|||
public interface ForgotPasswordsQuestionsUsersAnswersRepository extends JpaRepository<ForgotPasswordsQuestionsUsersAnswers, Integer> { |
|||
@Query(value = "SELECT fqua.* FROM forgotpassword_questions_users_answers fqua WHERE fqua.forgotpassword_questions_id = ?1 AND fqua.users_id = ?2", nativeQuery = true) |
|||
ForgotPasswordsQuestionsUsersAnswers findByForgotPasswordQuestionsAndUserid(Integer forgotpasswordquestionsid, Integer usersid); |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue