|
|
|
@ -1,3 +1,8 @@
|
|
|
|
|
/*
|
|
|
|
|
* Copyright (C) 2021 Anton Romanov - All Rights Reserved
|
|
|
|
|
* You may use, distribute and modify this code, please write to: romanov73@gmail.com.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
package ru.ulstu.extractor.model;
|
|
|
|
|
|
|
|
|
|
import org.hibernate.annotations.Fetch;
|
|
|
|
@ -84,4 +89,8 @@ public class Commit extends BaseEntity {
|
|
|
|
|
public void setBranch(Branch branch) {
|
|
|
|
|
this.branch = branch;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public boolean containsEntity() {
|
|
|
|
|
return fileChanges.stream().anyMatch(FileChange::isContainsEntity);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|