Skip to content

Commit

Permalink
[Fix #65] Change casecade of FaultEvent and related entities
Browse files Browse the repository at this point in the history
  • Loading branch information
kostobog committed Mar 14, 2024
1 parent 923a7a7 commit 22026ef
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
8 changes: 5 additions & 3 deletions src/main/java/cz/cvut/kbss/analysis/model/FailureRate.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package cz.cvut.kbss.analysis.model;

import cz.cvut.kbss.analysis.util.Vocabulary;
import cz.cvut.kbss.jopa.model.annotations.CascadeType;
import cz.cvut.kbss.jopa.model.annotations.FetchType;
import cz.cvut.kbss.jopa.model.annotations.OWLClass;
import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty;
import lombok.Getter;
Expand All @@ -11,13 +13,13 @@
@Setter
public class FailureRate extends AbstractEntity{

@OWLObjectProperty(iri = Vocabulary.s_p_has_requirement)
@OWLObjectProperty(iri = Vocabulary.s_p_has_requirement, cascade = CascadeType.ALL, fetch = FetchType.EAGER)
private FailureRateRequirement requirement;

@OWLObjectProperty(iri = Vocabulary.s_p_has_estimate)
@OWLObjectProperty(iri = Vocabulary.s_p_has_estimate, cascade = CascadeType.ALL, fetch = FetchType.EAGER)
private FailureRateEstimate estimate;

@OWLObjectProperty(iri = Vocabulary.s_p_has_prediction)
@OWLObjectProperty(iri = Vocabulary.s_p_has_prediction, cascade = CascadeType.ALL, fetch = FetchType.EAGER)
private FailureRateEstimate prediction;

}
2 changes: 1 addition & 1 deletion src/main/java/cz/cvut/kbss/analysis/model/FaultEvent.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public static FaultEvent create(){
@OWLDataProperty(iri = Vocabulary.s_p_hasProbability)
private Double probability;

@OWLObjectProperty(iri = Vocabulary.s_p_selected_estimation)
@OWLObjectProperty(iri = Vocabulary.s_p_selected_estimation, fetch = FetchType.EAGER)
private FailureRateEstimate selectedEstimate;

@OWLObjectProperty(iri = Vocabulary.s_p_hasChildren, cascade = CascadeType.ALL, fetch = FetchType.EAGER)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package cz.cvut.kbss.analysis.model;

import cz.cvut.kbss.analysis.util.Vocabulary;
import cz.cvut.kbss.jopa.model.annotations.CascadeType;
import cz.cvut.kbss.jopa.model.annotations.FetchType;
import cz.cvut.kbss.jopa.model.annotations.OWLClass;
import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty;
import lombok.Getter;
Expand All @@ -11,7 +13,7 @@
@Setter
public class FaultEventType extends Event{

@OWLObjectProperty(iri = Vocabulary.s_p_has_failure_rate)
@OWLObjectProperty(iri = Vocabulary.s_p_has_failure_rate, cascade = CascadeType.ALL, fetch = FetchType.EAGER)
private FailureRate failureRate;

}

0 comments on commit 22026ef

Please sign in to comment.