Skip to content

Commit

Permalink
Merge pull request #172 from Genti2024/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
LeeJae-H authored Sep 29, 2024
2 parents fdb56d7 + 08a2c28 commit fe6e535
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions genti-domain/src/main/java/com/gt/genti/user/model/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import com.gt.genti.picture.pose.model.PicturePose;
import com.gt.genti.picture.profile.model.PictureProfile;
import com.gt.genti.picture.userface.model.PictureUserFace;
import com.gt.genti.picture.userverification.model.PictureUserVerification;
import com.gt.genti.picturegeneraterequest.model.PictureGenerateRequest;
import com.gt.genti.user.UserSerializer;

Expand Down Expand Up @@ -138,6 +139,9 @@ public class User extends BaseTimeEntity {
@Column(name = "user_verified")
Boolean userVerified;

@OneToMany(mappedBy = "uploadedBy", cascade = CascadeType.ALL, orphanRemoval = true)
List<PictureUserVerification> pictureUserVerificationList;

@PrePersist
public void prePersist() {
if (this.userStatus == null) {
Expand Down

0 comments on commit fe6e535

Please sign in to comment.