oolongsawel / springboot_study

springboot_study
0 stars 0 forks source link

회원 등록 #3

Open oolongsawel opened 2 years ago

oolongsawel commented 2 years ago

member table


drop table if exists member CASCADE;
create table member
(
 id bigint generated by default as identity,
 name varchar(255) NOT NULL,
 mobile_Phone_Number varchar(255),
 home_Phone_Number varchar(255),
 memo varchar(255),
 join_Date date default sysdate,
del_Date date,
del_Yn boolean default  '0',
primary key (id)
);

domain member

public class Member {

    private Long id; //id
    private String name; //이름
    private String mobilePhoneNumber; //핸드폰 전화
    private String homePhoneNumber; //집전화
    private String memo; //메모
    private String joinDate; //가입 날짜
    private String delDate; //고객 삭제 날짜
    private boolean delYn; //삭제 여부

}
oolongsawel commented 2 years ago

lombok 추가

build.gradle 에 lombok 관련 추가

dependencies {
    compileOnly 'org.projectlombok:lombok'
    annotationProcessor 'org.projectlombok:lombok'
}

domain내 lombok 사용하기 위한 어노테이션 추가 @Getter , @Setter , @ToString java/com/laundry/laundry/domain/Member.java

package com.laundry.laundry.domain;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
public class Member {