feat: 사전 작업(도메인 생성 & 의존성 추가)

This commit is contained in:
kimjunseo
2021-07-23 00:15:18 +09:00
parent dd020da2e9
commit eebd3a9585
2 changed files with 66 additions and 0 deletions

24
build.gradle Normal file
View File

@@ -0,0 +1,24 @@
plugins {
id 'org.springframework.boot' version '2.5.2'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
}
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
test {
useJUnitPlatform()
}

View File

@@ -0,0 +1,42 @@
package com.example.oauthspringsecurity.domain;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
@Entity
public class Member {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
private String name;
private String email;
private String imageUrl;
protected Member() {
}
public Member(Long id, String name, String email, String imageUrl) {
this.id = id;
this.name = name;
this.email = email;
this.imageUrl = imageUrl;
}
public Long getId() {
return id;
}
public String getName() {
return name;
}
public String getEmail() {
return email;
}
public String getImageUrl() {
return imageUrl;
}
}