Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TASK-408] 메모, 멘토 관련 엔티티 생성 #14

Merged
merged 33 commits into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
9466dac
feat: create Mento Entity
beautiflow Apr 25, 2024
853d367
feat: create MentoCareer Entity
beautiflow Apr 25, 2024
f96e7e2
feat: create CareerLink Entity
beautiflow Apr 25, 2024
deb0be6
feat: create Memo Entity
beautiflow Apr 25, 2024
8c8658a
feat: create MentoringPossibleDate Entity
beautiflow Apr 25, 2024
ad24067
feat: modified MentoringPossibleDate Entity
beautiflow Apr 25, 2024
9cf3017
feat: 엔티티 생성 관련 수정
beautiflow Apr 26, 2024
6ff987b
feat: 엔티티 생성 정적 팩토리메소드 패턴 적용
beautiflow Apr 27, 2024
8c9fe38
feat: idDelete 에 nullable=false 추가
beautiflow Apr 28, 2024
364f24a
feat: create Member Entity
beautiflow Apr 28, 2024
6bafa1c
feat: create Mentor Entity
beautiflow Apr 28, 2024
09d1dbe
feat: create MentorCareer Entity
beautiflow Apr 28, 2024
e0912b9
feat: create MentoringApplication Entity
beautiflow Apr 28, 2024
a614aea
feat: create Review Entity
beautiflow Apr 28, 2024
a1e7121
feat: 어노테이션 수정 - @AllArgsConstructor
beautiflow Apr 28, 2024
31213b2
feat: 변경 클래스 삭제
beautiflow Apr 28, 2024
63e4dd2
feat: create enum class - MentorCareerPeriod, MentorGenre, MentoringA…
beautiflow Apr 29, 2024
7a13064
feat: enum class 생성으로 인해 타입 수정
beautiflow Apr 29, 2024
030af91
feat: 식별자 값 자동 생성부분 제거
beautiflow Apr 29, 2024
46141fc
chore: 공백 제거
beautiflow Apr 29, 2024
417b88f
feat: enum 클래스 필드 한글명으로 변경
beautiflow Apr 29, 2024
d0029b5
feat: CareerLink -> MentorHistory 변경 및 필드 추가
beautiflow Apr 29, 2024
d452712
feat: 필드명 간략하게 수정
beautiflow Apr 29, 2024
5ff1954
feat: 정적 팩토리 메서드 네이밍 규칙 of 적용
beautiflow Apr 29, 2024
a9ddd86
feat: MentorMentoringGenre 엔티티 생성
beautiflow Apr 29, 2024
0983cc1
feat: enum class 멘토링_장르 수정
beautiflow Apr 29, 2024
14048da
refactor: Member 관련 파일 주석 처리 및 이름 변경(User -> Member)으로 인한 삭제
beautiflow Apr 30, 2024
b29f984
refactor: Member 타입 수정으로 인한 User 타입 파일 주석 및 삭제
beautiflow Apr 30, 2024
7af37f1
refactor: User -> Member 타입 변경 및 관련 필드 수정
beautiflow Apr 30, 2024
d2139f2
Merge remote-tracking branch 'origin/feature/task-408-create_entity' …
beautiflow Apr 30, 2024
2368e6e
Merge branch 'develop' into feature/task-408-create_entity
beautiflow Apr 30, 2024
74334b4
refactor: MemoEntity - YoutubeVideo import 주소 수정
beautiflow Apr 30, 2024
9a1f825
Merge remote-tracking branch 'origin/feature/task-408-create_entity' …
beautiflow Apr 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions src/main/java/com/speechpeach/speech/memo/entity/Memo.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
package com.speechpeach.speech.memo.entity;

import com.speechpeach.speech.global.entity.BaseEntity;
import com.speechpeach.speech.user.entity.Member;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.FetchType;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.JoinColumn;
import jakarta.persistence.ManyToOne;
import jakarta.persistence.Table;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Builder
@AllArgsConstructor
@NoArgsConstructor
blacklabf marked this conversation as resolved.
Show resolved Hide resolved
@Getter
@Entity
@Table(name = "memos")
public class Memo extends BaseEntity {

@Id
@Column(name = "memo_id", nullable = false)
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long memoId;

@Column(name = "memo_title", nullable = false)
private String memoTitle;

@Column(name = "memo_content", nullable = false)
blacklabf marked this conversation as resolved.
Show resolved Hide resolved
private String memoContent;

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "member_id", nullable = false)
private Member memberId;
blacklabf marked this conversation as resolved.
Show resolved Hide resolved

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "youtube_video_id", nullable = false)
private YoutubeVideo youtubeVideoId;
blacklabf marked this conversation as resolved.
Show resolved Hide resolved

}
39 changes: 39 additions & 0 deletions src/main/java/com/speechpeach/speech/mento/entity/CareerLink.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
package com.speechpeach.speech.mento.entity;

import com.speechpeach.speech.global.entity.BaseEntity;
import com.speechpeach.speech.user.entity.Member;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.FetchType;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.JoinColumn;
import jakarta.persistence.ManyToOne;
import jakarta.persistence.OneToOne;
import jakarta.persistence.Table;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Builder
blacklabf marked this conversation as resolved.
Show resolved Hide resolved
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Entity
@Table(name = "career_links")
public class CareerLink extends BaseEntity {

@Id
@Column(name = "career_link_id", nullable = false)
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long careerLinkId;

@Column(name ="career_link_content", nullable = false)
private String careerLinkContent;

@OneToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "mento_id", nullable = false)
private Mento mentoId;
blacklabf marked this conversation as resolved.
Show resolved Hide resolved
}
72 changes: 72 additions & 0 deletions src/main/java/com/speechpeach/speech/mento/entity/Mento.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
package com.speechpeach.speech.mento.entity;

import com.speechpeach.speech.global.entity.BaseEntity;
import com.speechpeach.speech.user.entity.Member;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.FetchType;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.JoinColumn;
import jakarta.persistence.OneToOne;
import jakarta.persistence.Table;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Builder
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Entity
@Table(name = "mentos")
public class Mento extends BaseEntity {

@Id
@Column(name = "mento_id", nullable = false)
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long mentoId;

@Column(name = "mento_name", nullable = false)
private String mentoName;

@Column(name = "mento_career_period", nullable = false)
private String mentoCareerPeriod;

@Column(name = "mento_profile_image", nullable = false)
private String mentoProfileImage;

@Column(name = "mento_genre", nullable = false)
private String mentoGenre;

@Column(name = "mento_email", nullable = false)
private String mentoEmail;

@Column(name = "mento_phone_number", nullable = false)
private String mentoPhoneNumber;

@Column(name = "mento_title", nullable = false)
private String mentoTitle;

@Column(name = "mento_content", nullable = false)
private String mentoContent;

@Column(name = "mento_mentoring_method", nullable = false)
private String mentoMentoringMethod;

@Column(name = "mento_mentoring_time", nullable = false)
private int mentoMentoringTime;

@Column(name = "mento_mentoring_price", nullable = false)
private int mentoMentoringPrice;

@Column(name = "mento_status_id", nullable = false)
private String mentoStatusId;

@OneToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "member_id", nullable = false)
private Member memberId;

}
40 changes: 40 additions & 0 deletions src/main/java/com/speechpeach/speech/mento/entity/MentoCareer.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
package com.speechpeach.speech.mento.entity;

import com.speechpeach.speech.global.entity.BaseEntity;
import com.speechpeach.speech.user.entity.Member;
import jakarta.persistence.Column;
import jakarta.persistence.Convert;
import jakarta.persistence.Entity;
import jakarta.persistence.FetchType;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.JoinColumn;
import jakarta.persistence.OneToOne;
import jakarta.persistence.Table;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Builder
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Entity
@Table(name = "mento_careers")
public class MentoCareer extends BaseEntity {

@Id
@Column(name = "mento_career_id", nullable = false)
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long mentoCareerId;

@Column(name = "mento_career_content", nullable = false)
private String mentoCareerContent;

@OneToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "mento_id", nullable = false)
private Mento mentoId;

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
package com.speechpeach.speech.mento.entity;

import com.speechpeach.speech.global.entity.BaseEntity;
import com.speechpeach.speech.user.entity.Member;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.FetchType;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.JoinColumn;
import jakarta.persistence.ManyToOne;
import jakarta.persistence.Table;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Builder
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Entity
@Table(name = "mentoring_possible_dates")
public class MentoringPossibleDate extends BaseEntity {

@Id
@Column(name = "mentoring_possible_date_id", nullable = false)
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long mentoringPossibleDateId;

@Column(name = "mentoring_possible_date_day", nullable = false)
blacklabf marked this conversation as resolved.
Show resolved Hide resolved
private String mentoringPossibleDateDay;

@Column(name = "mentoring_possible_date_time_id", nullable = false)
private String mentoringPossibleDateTimeId;

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "mento_id", nullable = false)
private Mento mentoId;
}
Loading