Skip to content

[feature/#2] db 수정, entity 수정, jpa 레파지토리 구현 #7

Merged
Dong-Hyeon-Yu merged 21 commits into
InhaBas:devfrom
Dong-Hyeon-Yu:feature/#2
Jan 2, 2022
Merged

[feature/#2] db 수정, entity 수정, jpa 레파지토리 구현 #7
Dong-Hyeon-Yu merged 21 commits into
InhaBas:devfrom
Dong-Hyeon-Yu:feature/#2

Conversation

@Dong-Hyeon-Yu

Copy link
Copy Markdown
Member

No description provided.

@Dong-Hyeon-Yu

Copy link
Copy Markdown
Member Author

test db : board/major_info/user 만들면 됨.

@Mingyum-Kim Mingyum-Kim left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test 코드 잘 돌아가는 거 확인했습니다!

public Board board(@RequestParam Integer id) {
return repository.findById(id);
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

하단에 findByType에서 오류 떠서 findAllByCategory로 수정했습니다!

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

몇번째줄 말하는거죵??

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아 수정 되어있네용,, 이전 PR이랑 헷갈렸습니다 ㅎㅎ

 - BoardEntity : created, updated => entity 변경 시 자동 적용
 - BoardRepository : 인터페이스 수정, jpa 구현체 작성 및 테스트 통과
  - MemoryBoardRepository & MemoryBoardRepositoryTest : 인터페이스와 게시판 엔티티 수정으로 인한 리팩토링
 - MemberEntity, IbasInformation : joined 가입시간 자동 적용되게 수정
 - MemberServiceTest : 멤버 엔티티 변경에 따른 테스트 코드 리팩토링
+) MemberServiceTest:update 리팩토링
@Dong-Hyeon-Yu

Copy link
Copy Markdown
Member Author

api/board/all 안되는거 BoardController 수정해서 rebase 했습니다~ 확인해주세용

@Mingyum-Kim Mingyum-Kim left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve 안 누른거 이제 알았네요 😢
Test코드랑 Application 잘 돌아가는 거 확인했습니다

…lse </code> 적용할 것.

Eager Fetch 는 연관관계 해당하는 모든 데이터를 연쇄적으로 fetch 할 수 있음.
fk 가 null 값이 없다면 optional = false 꼭 설정, (Column(nullable=false) 로 지정해도 됨)
그래야 jpa가 sql 생성할 때 outer join 이 아닌 inner join 으로 생성.
@Dong-Hyeon-Yu Dong-Hyeon-Yu merged commit fabbbb8 into InhaBas:dev Jan 2, 2022
@Dong-Hyeon-Yu Dong-Hyeon-Yu self-assigned this Mar 19, 2022
@Dong-Hyeon-Yu Dong-Hyeon-Yu linked an issue Mar 19, 2022 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

게시판 dto <-> entity 계층 분리 및 서비스 로직 구현

2 participants