Skip to content

Commit

Permalink
⚙️ :: 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyoil2 committed Dec 26, 2023
1 parent c3b9850 commit 58bcef0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ public class QPetition extends EntityPathBase<Petition> {

public final NumberPath<Integer> voteCounts = createNumber("voteCounts", Integer.class);

public final ListPath<petition.petition.domain.vote.domain.Vote, petition.petition.domain.vote.domain.QVote> voteList = this.<petition.petition.domain.vote.domain.Vote, petition.petition.domain.vote.domain.QVote>createList("voteList", petition.petition.domain.vote.domain.Vote.class, petition.petition.domain.vote.domain.QVote.class, PathInits.DIRECT2);

public QPetition(String variable) {
this(Petition.class, forVariable(variable), INITS);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ public class Petition {
@JoinColumn(name = "user_id")
private User user;

@OneToMany(mappedBy = "petition", cascade = CascadeType.REMOVE, orphanRemoval = true)
@JoinColumn(name = "vote_id")
private List<Vote> voteList = new ArrayList<>();

public void modifyPetition(String title, String content, Types types, String location) {
this.title = title;
this.content = content;
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/petition/petition/domain/vote/domain/Vote.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package petition.petition.domain.vote.domain;

import lombok.*;
import org.hibernate.annotations.OnDelete;
import org.hibernate.annotations.OnDeleteAction;
import petition.petition.domain.petition.domain.Petition;
import petition.petition.domain.user.domain.User;

Expand All @@ -22,6 +24,7 @@ public class Vote {

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "petition_id")
@OnDelete(action = OnDeleteAction.CASCADE)
private Petition petition;

}
2 changes: 1 addition & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ spring:
max-request-size: 10MB

redis:
host: redis.xquare.app
host: localhost
port: 6379

jwt:
Expand Down

0 comments on commit 58bcef0

Please sign in to comment.