개발블로그

  • 홈
  • 태그
  • 방명록

Auditing 1

[JAVA] Auditing

엔티티를 생성, 변경할 때 변경한 사람과 시간을 추적하고 싶으면? 등록일/수정일 , 등록자/수정자를 등록시켜주자! MainApplication에 @EnableJpaAuditing Annotation 추가 한다. BaseEntity에 @EntityListeners(AuditingEntityListener.class) 추가 아래와 같이 작성 가능하다. @EntityListeners(AuditingEntityListener.class) @MappedSuperclass @Getter public class BaseEntity{ @CreatedDate @Column(updatable = false) private LocalDateTime createdDate; @LastModifiedDate private Loc..

JAVA 2022.02.24
이전
1
다음
더보기
프로필사진

개발블로그

개발자 박응디 cjdrud123@naver.com

  • 분류 전체보기 (126)
    • JAVA (81)
    • Python & Django (6)
    • Server(설정 등) (5)
    • DB (2)
    • Git (4)
    • Swift (7)
    • React (6)
    • AWS (2)
    • CT (5)
    • 참고사항 (8)

Tag

설정, code, JPA, testcode, java, query, Spring, entity, IOS, APP, IP, mapping, DB, TDD, 개발, 개발자, React, swift, python, test,

Calendar

«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

Copyright © Kakao Corp. All rights reserved.

티스토리툴바