-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
src/main/java/wowmarket/wow_server/detail/demandproject/dto/DemandAnswerDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package wowmarket.wow_server.detail.demandproject.dto; | ||
|
||
import lombok.Getter; | ||
|
||
@Getter | ||
public class DemandAnswerDto { | ||
private Long questionId; //추가질문 id | ||
private String answer; //답변 내용 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
src/main/java/wowmarket/wow_server/repository/DemandAnswerRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package wowmarket.wow_server.repository; | ||
|
||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import wowmarket.wow_server.domain.DemandAnswer; | ||
|
||
public interface DemandAnswerRepository extends JpaRepository<DemandAnswer, Long> { | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/java/wowmarket/wow_server/repository/DemandQuestionRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
package wowmarket.wow_server.repository; | ||
|
||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.data.jpa.repository.Query; | ||
import wowmarket.wow_server.domain.DemandQuestion; | ||
import java.util.List; | ||
|
||
public interface DemandQuestionRepository extends JpaRepository<DemandQuestion, Long> { | ||
List<DemandQuestion> findByDemandProject_Id(Long demand_project_id); | ||
|
||
@Query(nativeQuery = true, value = "select * from demand_question where demand_question_id =?") | ||
DemandQuestion findByQuestion_Id(Long questionId); | ||
} |