Skip to content

Commit

Permalink
[#82]: feat: image entity 생성
Browse files Browse the repository at this point in the history
  • Loading branch information
102092 committed Jun 22, 2020
1 parent afc146d commit f2dd1e4
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions BE/src/main/java/com/codesquad/issue/domain/image/Image.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package com.codesquad.issue.domain.image;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import lombok.Getter;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@Entity
@Getter
public class Image {

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;

private String url;

public Image(String url) {
this.url = url;
}
}

0 comments on commit f2dd1e4

Please sign in to comment.