프로그래밍나무

  • 홈
  • 태그

OneToOne 1

PK를 공유하는 OneToOne 식별관계 entity 만들기

https://www.baeldung.com/jpa-one-to-one#1-modeling-with-a-shared-primary-key 위의 자료를 이용해 만들었습니다. ERD user_profile 테이블이 uid를 PK이자 FK로 가지고 있습니다. user_profile 테이블 @Entity @Getter @Builder @NoArgsConstructor @AllArgsConstructor public class UserProfile { @Id private String uid; @Column(nullable = false, length = 256) private String filePath; @Column(nullable = false, length = 12) private String nickn..

Backend/JPA 2021.09.20
1
더보기
  • 분류 전체보기 (75)
    • Backend (15)
      • Spring (10)
      • JPA (2)
      • Oracle (2)
      • 기타 (1)
    • Frontend (5)
      • Vue (5)
    • Tools (1)
      • Jenkins (1)
    • 코딩테스트 (15)
      • 백준 (10)
      • SWEA (2)
    • CS (14)
      • CS 면접 준비 (2)
      • 알고리즘 개념 (10)
      • 자료구조 (2)
    • Cloud (1)
      • AWS (0)
    • 프로그래밍 언어 (5)
      • C++ (2)
      • JAVA (3)
    • Git (2)
    • Docker (3)
    • 책 (5)
      • 기술 관련 (5)
    • 프로젝트 (5)
      • SNS를 통한 운동팀 매칭 서비스 (4)
      • 설문조사 서비스 (1)
    • 기타 (1)

Copyright © Kakao Corp. All rights reserved.

티스토리툴바