-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e979302
commit 55890ca
Showing
3 changed files
with
56 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package promiseofblood.umpabackend.user; | ||
|
||
|
||
import jakarta.persistence.*; | ||
|
||
import lombok.*; | ||
import lombok.NoArgsConstructor; | ||
|
||
|
||
@Entity | ||
@Getter | ||
@Table(name = "majors") | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
public class Major { | ||
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
private Long id; | ||
|
||
private String name; | ||
|
||
@Override | ||
public String toString() { | ||
return "Major(id=" + this.getId() + ", name=" + this.getName() + ")"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
INSERT INTO majors (name) | ||
VALUES ('피아노'), | ||
('작곡'), | ||
('드럼'), | ||
('베이스'), | ||
('기타'), | ||
('보컬'), | ||
('전자음악'), | ||
('관악'); | ||
|