2023-03-22-TIL

Today I Learned

Configure Server

@Configuration vs @Component

  • https://blog.naver.com/sthwin/222131873998
  • https://stackoverflow.com/questions/39174669/what-is-the-difference-between-configuration-and-component-in-spring

Articles

  • https://news.hada.io/topic?id=8755&utm_source=slack&utm_medium=bot&utm_campaign=T74H5245A

이력유형

이력 데이터의 종류

발생 이력 데이터

⇒ 어떤 데이터가 발생할 때마다 이력 정보를 남겨야 할때 예) 스포츠 데이터 (실시간 중계)

변경 이력 데이터

⇒ 데이터가 변경될 때마다 변경 전과 후의 차이를 확인해야 할때 예) 리뷰 수정 전 후를 비교하고 싶을 때

진행 이력 데이터

⇒ 업무의 진행에 따라 데이터의 이력 정보를 남겨야 할 때 예) 택배

  • https://dataonair.or.kr/db-tech-reference/d-lounge/expert-column/?mod=document&uid=52906#:~:text=%EC%9D%B4%EB%A0%A5%EC%9D%80%20%EC%8B%9C%EA%B0%84%EC%97%90%20%EB%94%B0%EB%9D%BC,%EA%B0%80%20%EB%B9%88%EB%B2%88%ED%95%98%EA%B2%8C%20%EC%9D%B4%EC%9A%A9%EB%90%9C%EB%8B%A4.
  • https://12bme.tistory.com/200
  • https://velog.io/@dankim/%EB%8D%B0%EC%9D%B4%ED%84%B0-%EC%9D%B4%EB%A0%A5-%EA%B4%80%EB%A6%AC

이력테이블에 자동으로 데이터 쌓기 in JPA: Enver

  • https://compunication.tistory.com/27
  • https://www.baeldung.com/database-auditing-jpa
  • https://gist.github.com/dlxotn216/94c34a2debf848396cf82a7f21a32abe
  • https://www.linkedin.com/pulse/history-audit-javajpahibernate-entity-classes-shubham-ambatkar?trk=public_profile_article_view
  • https://sehajyang.github.io/2020/04/15/springboot-envers-logging-for-revision/
  • https://stackoverflow.com/questions/57676086/how-to-implement-history-data-changes-with-spring-boot-spring-data
  • https://levelup.gitconnected.com/manage-a-history-of-domain-model-changes-with-spring-609d2613fc7d
  • https://escapefromcoding.tistory.com/550
  • https://reachmnadeem.wordpress.com/2021/06/04/maintaining-data-revision-history-with-spring-data-envers/
  • https://docs.spring.io/spring-data/envers/docs/current/reference/html/