@PrePersist @PreUpdate protected void correctCategory() { if (this.interaction != null){ if (Hibernate.isInitialized(this.interaction.getAnnotations())){ if (ComplexUtils.isComplex(this.interaction)){ if (this.category == null || !this.category.endsWith("_pool")){ this.category = "modelled_participant"; } else { this.category = "modelled_participant_pool"; } } else if (this.category == null || !this.category.endsWith("_pool")){ this.category = "participant_evidence"; } else { this.category = "participant_evidence_pool"; } } else if (this.category == null){ this.category = "participant_evidence"; } } else if (this.category == null){ this.category = "participant_evidence"; } }
@PrePersist @PreUpdate protected void correctCategory() { if (this.interaction != null){ if (Hibernate.isInitialized(this.interaction.getAnnotations())){ if (ComplexUtils.isComplex(this.interaction)){ if (this.category == null || !this.category.endsWith("_pool")){ this.category = "modelled_participant"; } else { this.category = "modelled_participant_pool"; } } else if (this.category == null || !this.category.endsWith("_pool")){ this.category = "participant_evidence"; } else { this.category = "participant_evidence_pool"; } } else if (this.category == null){ this.category = "participant_evidence"; } } else if (this.category == null){ this.category = "participant_evidence"; } }
@PrePersist @PreUpdate protected void correctCategory() { if (this.component != null){ if (this.component.getInteraction() != null){ if (Hibernate.isInitialized(this.component.getInteraction().getAnnotations())){ if (ComplexUtils.isComplex(this.component.getInteraction())){ this.category = "modelled"; } else { this.category = "evidence"; } } else if (this.category == null){ this.category = "evidence"; } } else if (this.category == null){ this.category = "evidence"; } } else if (this.category == null){ this.category = "evidence"; } }
@PrePersist @PreUpdate protected void correctCategory() { if (this.component != null){ if (this.component.getInteraction() != null){ if (Hibernate.isInitialized(this.component.getInteraction().getAnnotations())){ if (ComplexUtils.isComplex(this.component.getInteraction())){ this.category = "modelled"; } else { this.category = "evidence"; } } else if (this.category == null){ this.category = "evidence"; } } else if (this.category == null){ this.category = "evidence"; } } else if (this.category == null){ this.category = "evidence"; } }