Skip to content

Commit

Permalink
Merge pull request #175 from Genti2024/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
LeeJae-H authored Sep 30, 2024
2 parents fe6e535 + b97370a commit 98811f2
Showing 1 changed file with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,7 @@
import com.gt.genti.common.basetimeentity.model.BaseTimeEntity;
import com.gt.genti.picturegenerateresponse.model.PictureGenerateResponse;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
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 jakarta.persistence.*;
import lombok.AccessLevel;
import lombok.Builder;
import lombok.Getter;
Expand All @@ -28,7 +20,7 @@ public class Settlement extends BaseTimeEntity {
@GeneratedValue(strategy = GenerationType.IDENTITY)
Long id;

@OneToOne
@OneToOne(cascade = CascadeType.REMOVE)
@JoinColumn(name = "picture_generate_response_id", referencedColumnName = "id", nullable = false)
PictureGenerateResponse pictureGenerateResponse;

Expand Down

0 comments on commit 98811f2

Please sign in to comment.