[TIL]航海9920日
ORM(Object-Relational Mapping)
Object:オブジェクト向け言語(Java、Python)
リレーショナル:リレーショナルデータベース(H 2、MySQL)

JPA
データベース#データベース# 翻訳言語のORM

@Entity // DB 테이블 역할
public class User {
// ID가 자동으로 생성
@GeneratedValue(strategy = GenerationType.AUTO)
@Id
private Long id;
// nullable: null 허용 여부
// unique: 중복 허용 여부 (false 일때 중복 허용)
@Column(nullable = false, unique = true)
private String username;
@Column(nullable = false)
private String password;
@Column(nullable = false, unique = true)
private String email;
@Column(nullable = false)
@Enumerated(value = EnumType.STRING)
private UserRoleEnum role;
@Column(unique = true)
private Long kakaoId;
}

MVC (Model - View - Controller)
Controller
モデルを
Reference
この問題について([TIL]航海9920日), 我々は、より多くの情報をここで見つけました https://velog.io/@woojinshim103/TIL-항해99-20일차テキストは自由に共有またはコピーできます。ただし、このドキュメントのURLは参考URLとして残しておいてください。
Collection and Share based on the CC Protocol