Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[hoony-lab] User 도메인 구현 #12

Closed
4 of 5 tasks
hoony-lab opened this issue Aug 1, 2021 · 0 comments
Closed
4 of 5 tasks

[hoony-lab] User 도메인 구현 #12

hoony-lab opened this issue Aug 1, 2021 · 0 comments
Assignees
Labels

Comments

@hoony-lab
Copy link
Member

hoony-lab commented Aug 1, 2021

TODO

  • Project Setting
  • User : Entity, Repository, Service, Controller
  • Authentication : POST /api/users/login (No authentication)
    • token 제외
  • Registration : POST /api/users (No authentication)
    • token 제외
  • Test
@hoony-lab hoony-lab self-assigned this Aug 1, 2021
hoony-lab added a commit that referenced this issue Aug 3, 2021
hoony-lab added a commit that referenced this issue Aug 3, 2021
hoony-lab added a commit that referenced this issue Aug 3, 2021
user_builder
user_equals_and_hashCode
hoony-lab added a commit that referenced this issue Aug 3, 2021
findAll, findById, findByEmail, save, deleteById
hoony-lab added a commit that referenced this issue Aug 3, 2021
save_and_findAll
save_and_findByEmail
save_and_findById
save_and_deleteById
save_and_deleteById_exception
hoony-lab added a commit that referenced this issue Aug 3, 2021
`@JsonTypeName`, `@JsonTypeInfo` : Mapping Object
static `toUser` : convert DTO to Entity(User) for communicate within layers
hoony-lab added a commit that referenced this issue Aug 3, 2021
`@JsonTypeName`, `@JsonTypeInfo` : Mapping Object
static `of`: convert Entity(User) to DTO for communicate within layers
hoony-lab added a commit that referenced this issue Aug 3, 2021
`@JsonTypeName`, `@JsonTypeInfo` : Mapping Object
hoony-lab added a commit that referenced this issue Aug 3, 2021
joinUser : `POST /api/users/`
loginUser : `POST /api/users/login`
hoony-lab added a commit that referenced this issue Aug 3, 2021
http authorizeRequest
- `/api/users/`, `/api/users/login/`
hoony-lab added a commit that referenced this issue Aug 3, 2021
PasswordEncoder >> BCryptPasswordEncoder
hoony-lab added a commit that referenced this issue Aug 3, 2021
hoony-lab added a commit that referenced this issue Aug 3, 2021
POST_api_users
POST_api_users_login

테스트에 대한 추가 이해와 유닛/단위 테스트 필요
hoony-lab added a commit that referenced this issue Aug 7, 2021
hoony-lab added a commit that referenced this issue Aug 7, 2021
`@SpringBootTest` >> `@ExtendWith(MockitoExtension.class)`
hoony-lab added a commit that referenced this issue Aug 7, 2021
`@SpringBootTest` >> `@WebMvcTest(UserController.class)`
hoony-lab added a commit that referenced this issue Aug 8, 2021
테이블 컬럼명을 맞추어야할 것 같아요 :)
from @jinyoungchoi95

물론, 명명 규칙에 의해서 자동으로 컬럼 명을 만들어주지만, 명명 규칙은 스프링 설정 파일에서도 변경 가능하고, 무엇이든 명시적으로 기술
from @kwj1270

Co-authored-by: 최진영 <jinyoungchoi95@gmail.com>
hoony-lab added a commit that referenced this issue Aug 8, 2021
Constructor가 필요한 클래스일까요?
from jinyoungchoi95

Co-authored-by: 최진영 <jinyoungchoi95@gmail.com>
hoony-lab added a commit that referenced this issue Aug 11, 2021
`@DataJpaTest` 에 `JpaConfig` 추가해서 `BasetimeEntity` 테스트
hoony-lab added a commit that referenced this issue Aug 12, 2021
`findByEmail이 중복되는 것 같은데 메서드로 분리해서 재사용도 좋을 것 같네요!`

Co-Authored-By: KimWooJae <50267433+kwj1270@users.noreply.github.com>
hoony-lab added a commit that referenced this issue Aug 12, 2021
> `메서드로 분리해서 내부가 어떻게 돌아가는지 감추는 것`

`validateMatchesPassword` 메소드 추가하여 비밀번호 확인 로직 이동

Co-Authored-By: KimWooJae <50267433+kwj1270@users.noreply.github.com>
hoony-lab added a commit that referenced this issue Aug 14, 2021
`@Transactional은 보통 Class단에 어노테이션으로 먹일 때에는 readOnly = true, CUD 메소드에 먹일 때 readOnly = false로 먹이니 참고만 해주셔용`

Co-Authored-By: povia <47127607+povia@users.noreply.github.com>
hoony-lab added a commit that referenced this issue Aug 16, 2021
`@Transactional은 보통 Class단에 어노테이션으로 먹일 때에는 readOnly = true, CUD 메소드에 먹일 때 readOnly = false로 먹이니 참고만 해주셔용`

Co-Authored-By: povia <47127607+povia@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant