Skip to content

Instantly share code, notes, and snippets.

@deeev-sb
Created December 25, 2020 09:25
Show Gist options
  • Save deeev-sb/8d537a0a3ea4cef56969b402617fa2eb to your computer and use it in GitHub Desktop.
Save deeev-sb/8d537a0a3ea4cef56969b402617fa2eb to your computer and use it in GitHub Desktop.
// java/hello/hellospring/domain/Member.java
package hello.hellospring.domain;
public class Member {
private Long id; // 시스템이 저장하는 ID
private String name; // 회원 이름
// 단순하게 쉬운 예제로 하기 위해 getter, setter 사용
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment