Изменение подхода к уведомлениям
This commit is contained in:
parent
57c787bf01
commit
214c0401ac
@ -117,6 +117,17 @@ public class MergeRequest {
|
|||||||
@Column(name = "is_reviewer")
|
@Column(name = "is_reviewer")
|
||||||
private boolean userReviewer;
|
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
|
@ElementCollection
|
||||||
@CollectionTable(name = "merge_request_label", joinColumns = @JoinColumn(name = "merge_request_id"))
|
@CollectionTable(name = "merge_request_label", joinColumns = @JoinColumn(name = "merge_request_id"))
|
||||||
@Column(name = "label")
|
@Column(name = "label")
|
||||||
|
@ -8,7 +8,7 @@ spring:
|
|||||||
change-log: classpath:liquibase/changelog.xml
|
change-log: classpath:liquibase/changelog.xml
|
||||||
jpa:
|
jpa:
|
||||||
show-sql: false
|
show-sql: false
|
||||||
open-in-view: false
|
# open-in-view: false
|
||||||
hibernate:
|
hibernate:
|
||||||
ddl-auto: none
|
ddl-auto: none
|
||||||
properties:
|
properties:
|
||||||
|
Loading…
Reference in New Issue
Block a user