Skip to content

Commit

Permalink
[Fix kbss-cvut/fta-fmea-ui#284] Set simpleLiteral annotation paramete…
Browse files Browse the repository at this point in the history
…r to true on enum fields in JOPA model.
  • Loading branch information
kostobog committed May 15, 2024
1 parent 2054cfd commit 4e329de
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/main/java/cz/cvut/kbss/analysis/model/Behavior.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public abstract class Behavior extends DomainEntity<Behavior> {
@OWLObjectProperty(iri = Vocabulary.s_p_is_derived_from, fetch = FetchType.EAGER)
protected Set<Behavior> supertypes;

@OWLDataProperty(iri = Vocabulary.s_p_behavior_type)
@OWLDataProperty(iri = Vocabulary.s_p_behavior_type, simpleLiteral = true)
private BehaviorType behaviorType = BehaviorType.AtomicBehavior;

@OWLObjectProperty(iri = Vocabulary.s_p_has_required, fetch = FetchType.EAGER)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
@Setter
public abstract class DomainEntity<T extends DomainEntity> extends ManagedEntity{

@OWLDataProperty(iri = Vocabulary.s_p_has_type_category)
@OWLDataProperty(iri = Vocabulary.s_p_has_type_category, simpleLiteral = true)
private TypeCategory typeCategory;

public abstract Set<T> getSupertypes();
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/cz/cvut/kbss/analysis/model/FailureMode.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@Setter
public class FailureMode extends Behavior {

@OWLDataProperty(iri = Vocabulary.s_p_failure_mode_type)
@OWLDataProperty(iri = Vocabulary.s_p_failure_mode_type, simpleLiteral = true)
private FailureModeType failureModeType = FailureModeType.FailureMode;

@Override
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/cz/cvut/kbss/analysis/model/FaultEvent.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ public static FaultEvent create(){

@NotNull(message = "EventType must be defined")
@ParticipationConstraints(nonEmpty = true)
@OWLDataProperty(iri = Vocabulary.s_p_fault_event_type)
@OWLDataProperty(iri = Vocabulary.s_p_fault_event_type, simpleLiteral = true)
private FtaEventType eventType;

@OWLDataProperty(iri = Vocabulary.s_p_gate_type)
@OWLDataProperty(iri = Vocabulary.s_p_gate_type, simpleLiteral = true)
private GateType gateType;

@OWLObjectProperty(iri = Vocabulary.s_p_has_rectangle, fetch = FetchType.EAGER, cascade = CascadeType.ALL)
Expand Down

0 comments on commit 4e329de

Please sign in to comment.