Skip to content

Instantly share code, notes, and snippets.

@yooniversal
Created August 11, 2021 15:42
Show Gist options
  • Save yooniversal/6114aa5d4f50191863ec5806ed7282e9 to your computer and use it in GitHub Desktop.
Save yooniversal/6114aa5d4f50191863ec5806ed7282e9 to your computer and use it in GitHub Desktop.
JPA 2장 : Member 어노테이션 추가
import javax.persistence.*;
@Entity
@Table(name="MEMBER")
public class Member {
@Id
@Column(name = "ID")
private String id;
@Column(name = "NAME")
private String username;
private Integer age;
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment