Skip to content

Commit

Permalink
feat : #11 Model 도메인 생성
Browse files Browse the repository at this point in the history
  • Loading branch information
j2noo committed Mar 2, 2024
1 parent 1d44565 commit 7da4e66
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions src/main/java/com/backend/soullive_a/domain/Model.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
package com.backend.soullive_a.domain;

import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import lombok.AccessLevel;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Entity
@Getter
@Builder
@NoArgsConstructor(access = AccessLevel.PROTECTED)
public class Model {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long modelId;

private String modelName;
private Integer age;

@Builder
public Model(Long modelId,String modelName,Integer age) {
this.modelId = modelId;
this.modelName = modelName;
this.age = age;
}

}

0 comments on commit 7da4e66

Please sign in to comment.