Melody Coding

  • 홈
  • 태그
  • 방명록

@LastModifiedDate 1

[SpringBoot] @CreatedDate @LastModifiedDate

JPA를 사용하면서 DB에 생성된 시간 정보와 수정된 시간 정보를 자동으로 저장할 때 사용하는 것이 @CreatedDate와@LastModifiedDate이다. 이 두 가지를 사용하는 방법을 알아보자.  💡@CreatedDate @LastModifedDate자동으로 시간을 저장하려는 Column에 @CreatedDate와 @LastModifedDate를 붙여준다. 또한 클래스에 @EntityListeners(AuditingEntityListener.class)를 붙여준다.  import lombok.AllArgsConstructor;import lombok.Builder;import lombok.Getter;import lombok.NoArgsConstructor;import org.springfram..

🌝Coding/🌟SpringBoot 2024.05.14
이전
1
다음
더보기
프로필사진

🌱🐣 삐약이 개발자 🐣🌱

  • 분류 전체보기 (800) N
    • 🌞Algorithm (649) N
      • 🔥programmers (43)
      • 🔥Baekjoon (606) N
    • 🌝Coding (58)
      • 🌟SpringBoot (4)
      • 🌟WEB (9)
      • 🌟JAVA (5)
      • 🌟Python3 (10)
      • 🌟Android Studio (10)
      • 🌟React (9)
      • 🌟React-Native (5)
      • 🌟Kotlin (5)
      • 🎈 (1)
    • ☁️정리 (39)
      • ❄️자료구조 (8)
      • ❄️알고리즘 (7)
      • ❄️SQL (11)
      • ❄️CS (13)
    • 👩‍💻Study Group (39)
      • 🫧2020-2021 동계 모각코_와플팬케잌호떡 (13)
      • 🫧2021 하계 모각코_와플팬케잌호떡 (13)
      • 🫧2021-2022 동계 모각코_슈붕팥붕 (13)
    • 🍀소소한 Study (14)
      • ☘️프로젝트 (0)
      • ☘️잡동사니 (4)
      • ☘️자격증 & 경험 (1)
      • ☘️✏ (7)
    • (●'◡'●) (0)

Tag

springboot, SQL, java, 프로그래머스, 코틀린, 모각코, mysql, 파이썬, programmers, react, Summer/Winter Coding(~2018), CS, 2018 KAKAO BLIND RECRUITMENT, 코틀린 기본, 월간 코드 챌린지 시즌1, react native, python3, Python, 백준, kotlin,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/09   »
일 월 화 수 목 금 토
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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바