Skip to content

Commit

Permalink
BugFix: Entity(PetVideoLike) id의 key 생성전략을 identity로 변경
Browse files Browse the repository at this point in the history
BugFix: Entity(PetVideoLike) id의 key 생성전략을 identity로 변경
  • Loading branch information
xGreenNarae authored Oct 31, 2023
2 parents 2b3a61a + 9a79242 commit 8599859
Showing 1 changed file with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,22 @@

import com.daggle.animory.common.entity.BaseEntity;
import com.daggle.animory.domain.pet.entity.PetVideo;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import lombok.AccessLevel;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import javax.validation.constraints.NotNull;

@Getter
@Entity
@Table(name = "pet_video_like")
@NoArgsConstructor(access = AccessLevel.PROTECTED)
public class PetVideoLike extends BaseEntity {

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

@NotNull
Expand Down

0 comments on commit 8599859

Please sign in to comment.