2022-03-06-TIL

Today I Learned

JPA vs MyBatis

Package Structure Domain

  • https://hackernoon.com/package-by-features-not-layers-2d076df1964d
  • https://stackoverflow.com/questions/55245747/should-we-use-package-by-feature-structure-with-ddd

같은 테이블에 대한 엔티티가 여러개인 경우

하나의 테이블에 대해서 여러개의 엔티티가 존재하여 참조할 경우, 동시성 문제가 없는가?

  • https://thorben-janssen.com/hibernate-tips-map-multiple-entities-same-table/#:~:text=If%20you%20want%20to%20map,is%20not%20an%20entity%20itself.
  • https://stackoverflow.com/questions/18547932/hibernate-one-table-multiple-entities

JUnit asssertTrue vs AssertJ assertThat

  • https://www.reddit.com/r/java/comments/cdwsyk/junit_asserttrue_vs_assertthat_readability/
  • https://jongmin92.github.io/2020/03/31/Java/use-assertthat/

Spring Rest Docs

Swagger가 너무 코드를 복잡하게 만든다면 Spring Rest Docs를 고려해볼 수 있다.

  • https://spring.io/guides/gs/testing-restdocs/
  • https://techblog.woowahan.com/2597/