Изменение подхода к уведомлениям
This commit is contained in:
parent
57c787bf01
commit
214c0401ac
@ -117,6 +117,17 @@ public class MergeRequest {
|
||||
@Column(name = "is_reviewer")
|
||||
private boolean userReviewer;
|
||||
|
||||
@OneToMany(
|
||||
fetch = FetchType.LAZY,
|
||||
cascade = {CascadeType.PERSIST, CascadeType.MERGE}
|
||||
)
|
||||
@JoinTable(
|
||||
name = "merge_request_approvals",
|
||||
joinColumns = @JoinColumn(name = "merge_request_id", referencedColumnName = "id"),
|
||||
inverseJoinColumns = @JoinColumn(name = "person_id", referencedColumnName = "id")
|
||||
)
|
||||
private List<Person> approvals = new ArrayList<>();
|
||||
|
||||
@ElementCollection
|
||||
@CollectionTable(name = "merge_request_label", joinColumns = @JoinColumn(name = "merge_request_id"))
|
||||
@Column(name = "label")
|
||||
|
@ -8,7 +8,7 @@ spring:
|
||||
change-log: classpath:liquibase/changelog.xml
|
||||
jpa:
|
||||
show-sql: false
|
||||
open-in-view: false
|
||||
# open-in-view: false
|
||||
hibernate:
|
||||
ddl-auto: none
|
||||
properties:
|
||||
|
Loading…
Reference in New Issue
Block a user