[Feature] 게시글 생성
Closed this issue · 0 comments
DYShin1 commented
CommunityForDeveloper 프로젝트
1. 게시글 데이터 insert
01. 목적
게시글 작성 후 해당 데이터를 DB로 전송하는 작업
02. 기능 구현 상세 내용
- Test에서 Article DTO setter를 이용해 객체 생성
- Article Service Mapper를 이용해 DTO -> Entity
- JpaRepository를 이용해 DB로 데이터 Insert
03. 참고사항
- DB PK가 Auto_Increment가 아니면 DTO가 안만들어짐.
- 아직 Assertion을 이용한 테스트는 구현 안되었지만, 추후 Repository를 통한 직접 테스트 구현 예정