@OneToMany(fetch = FetchType.LAZY, orphanRemoval = true) @JoinColumn(name = "annotatedObjId") @Where(clause = "annotatedObjType = 'MeasurementOrFact'") @Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.DELETE }) @JsonIgnore public Set<Annotation> getAnnotations() { return annotations; }
@Cascade(CascadeType.ALL) @OneToMany(mappedBy = "taskData") @OnDelete(action = OnDeleteAction.CASCADE) public List<EnvironmentModifierData> getEnvModifiers() { return envModifiers; }
@Override @OneToMany(fetch = FetchType.LAZY, orphanRemoval = true) @JoinColumn(name = "annotatedObjId") @Where(clause = "annotatedObjType = 'Identification'") @Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.DELETE }) public Set<Annotation> getAnnotations() { return annotations; }
@SuppressWarnings("deprecation") @ManyToOne(optional=true) @JoinColumn(name="expedient_tipus") @ForeignKey(name="hel_exptipus_seqdefany_fk") @Cascade({CascadeType.DELETE_ORPHAN}) public ExpedientTipus getExpedientTipus() { return expedientTipus; }
@ForeignKey(name = "fk_audit_delta") @OneToMany(mappedBy = "record", orphanRemoval = true) @Cascade({ org.hibernate.annotations.CascadeType.ALL }) public Set<RObjectDeltaOperation> getDeltas() { if (deltas == null) { deltas = new HashSet<>(); } return deltas; }
@ForeignKey(name = "fk_audit_item") @OneToMany(mappedBy = "record", orphanRemoval = true) @Cascade({ org.hibernate.annotations.CascadeType.ALL }) public Set<RAuditItem> getChangedItems() { if (changedItems == null) { changedItems = new HashSet<>(); } return changedItems; }
@ForeignKey(name = "fk_audit_prop_value") @OneToMany(mappedBy = "record", orphanRemoval = true) @Cascade({ org.hibernate.annotations.CascadeType.ALL }) public Set<RAuditPropertyValue> getPropertyValues() { if (propertyValues == null) { propertyValues = new HashSet<>(); } return propertyValues; }
@ForeignKey(name = "fk_audit_ref_value") @OneToMany(mappedBy = "record", orphanRemoval = true) @Cascade({ org.hibernate.annotations.CascadeType.ALL }) public Set<RAuditReferenceValue> getReferenceValues() { if (referenceValues == null) { referenceValues = new HashSet<>(); } return referenceValues; }
@OneToMany(mappedBy = RAExtValue.ANY_CONTAINER, orphanRemoval = true) @Cascade({org.hibernate.annotations.CascadeType.ALL}) public Set<RAExtBoolean> getBooleans() { if (booleans == null) { booleans = new HashSet<>(); } return booleans; }
@OneToMany(mappedBy = RAExtValue.ANY_CONTAINER, orphanRemoval = true) @Cascade({org.hibernate.annotations.CascadeType.ALL}) public Set<RAExtLong> getLongs() { if (longs == null) { longs = new HashSet<>(); } return longs; }
@OneToMany(mappedBy = RAExtValue.ANY_CONTAINER, orphanRemoval = true) @Cascade({org.hibernate.annotations.CascadeType.ALL}) public Set<RAExtString> getStrings() { if (strings == null) { strings = new HashSet<>(); } return strings; }
@OneToMany(mappedBy = RAExtValue.ANY_CONTAINER, orphanRemoval = true) @Cascade({org.hibernate.annotations.CascadeType.ALL}) public Set<RAExtDate> getDates() { if (dates == null) { dates = new HashSet<>(); } return dates; }
@OneToMany(mappedBy = RAExtValue.ANY_CONTAINER, orphanRemoval = true) @Cascade({org.hibernate.annotations.CascadeType.ALL}) public Set<RAExtReference> getReferences() { if (references == null) { references = new HashSet<>(); } return references; }
@OneToMany(mappedBy = RAExtValue.ANY_CONTAINER, orphanRemoval = true) @Cascade({org.hibernate.annotations.CascadeType.ALL}) public Set<RAExtPolyString> getPolys() { if (polys == null) { polys = new HashSet<>(); } return polys; }
@ElementCollection @ForeignKey(name = "fk_connector_target_system") @CollectionTable(name = "m_connector_target_system", joinColumns = { @JoinColumn(name = "connector_oid", referencedColumnName = "oid") }) @Cascade({org.hibernate.annotations.CascadeType.ALL}) public Set<String> getTargetSystemType() { return targetSystemType; }
@ElementCollection @ForeignKey(name = "fk_user_organization") @CollectionTable(name = "m_user_organization", joinColumns = { @JoinColumn(name = "user_oid", referencedColumnName = "oid") }) @Cascade({org.hibernate.annotations.CascadeType.ALL}) public Set<RPolyString> getOrganization() { return organization; }
@ElementCollection @ForeignKey(name = "fk_user_org_unit") @CollectionTable(name = "m_user_organizational_unit", joinColumns = { @JoinColumn(name = "user_oid", referencedColumnName = "oid") }) @Cascade({org.hibernate.annotations.CascadeType.ALL}) public Set<RPolyString> getOrganizationalUnit() { return organizationalUnit; }
@ElementCollection @ForeignKey(name = "fk_user_employee_type") @CollectionTable(name = "m_user_employee_type", joinColumns = { @JoinColumn(name = "user_oid", referencedColumnName = "oid") }) @Cascade({org.hibernate.annotations.CascadeType.ALL}) public Set<String> getEmployeeType() { return employeeType; }
@ElementCollection @ForeignKey(name = "fk_org_org_type") @CollectionTable(name = "m_org_org_type", joinColumns = { @JoinColumn(name = "org_oid", referencedColumnName = "oid") }) @Cascade({org.hibernate.annotations.CascadeType.ALL}) public Set<String> getOrgType() { return orgType; }
@Where(clause = RObjectReference.REFERENCE_TYPE + "= 7") @OneToMany(mappedBy = RObjectReference.F_OWNER, orphanRemoval = true) @ForeignKey(name = "none") @Cascade({org.hibernate.annotations.CascadeType.ALL}) public Set<RObjectReference<RObjectTemplate>> getIncludeRef() { if (includeRef == null) { includeRef = new HashSet<>(); } return includeRef; }
@JaxbName(localPart = "workItem") @OneToMany(mappedBy = "owner", orphanRemoval = true) @org.hibernate.annotations.ForeignKey(name = "none") @Cascade({org.hibernate.annotations.CascadeType.ALL}) public Set<RAccessCertificationWorkItem> getWorkItems() { return workItems; }
@JaxbName(localPart = "assigneeRef") @OneToMany(mappedBy = "owner", orphanRemoval = true) @ForeignKey(name = "none") @Cascade({org.hibernate.annotations.CascadeType.ALL}) public Set<RCertWorkItemReference> getAssigneeRef() { return assigneeRef; }
@ElementCollection @ForeignKey(name = "fk_service_type") @CollectionTable(name = "m_service_type", joinColumns = { @JoinColumn(name = "service_oid", referencedColumnName = "oid") }) @Cascade({org.hibernate.annotations.CascadeType.ALL}) public Set<String> getServiceType() { return serviceType; }
@ElementCollection @ForeignKey(name = "fk_task_dependent") @CollectionTable(name = "m_task_dependent", joinColumns = { @JoinColumn(name = "task_oid", referencedColumnName = "oid") }) @Cascade({org.hibernate.annotations.CascadeType.ALL}) public Set<String> getDependent() { return dependent; }
/** * @return the annotations */ @OneToMany(fetch = FetchType.LAZY, orphanRemoval = true) @JoinColumn(name = "annotatedObjId") @Where(clause = "annotatedObjType = 'Description'") @Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.DELETE }) @JsonIgnore public Set<Annotation> getAnnotations() { return annotations; }
/** * @return the references */ @ManyToMany(fetch = FetchType.LAZY) @Cascade({ CascadeType.SAVE_UPDATE }) @JoinTable(name = "Description_Reference", joinColumns = { @JoinColumn(name = "Description_id") }, inverseJoinColumns = { @JoinColumn(name = "references_id") }) @JsonSerialize(contentUsing = ReferenceSerializer.class) public Set<Reference> getReferences() { return references; }
@ManyToMany(fetch = FetchType.LAZY) @JoinTable(name = "Taxon_TypeAndSpecimen", joinColumns = {@JoinColumn(name = "typesAndSpecimens_id")}, inverseJoinColumns = {@JoinColumn(name = "Taxon_id")}) @Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE }) @JsonSerialize(contentUsing = TaxonSerializer.class) public Set<Taxon> getTaxa() { return taxa; }
@OneToMany(fetch = FetchType.LAZY, orphanRemoval = true) @JoinColumn(name = "annotatedObjId") @Where(clause = "annotatedObjType = 'TypeAndSpecimen'") @Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.DELETE }) @JsonIgnore public Set<Annotation> getAnnotations() { return annotations; }
@ManyToMany(fetch = FetchType.LAZY) @JoinTable(name = "Taxon_IdentificationKey", joinColumns = {@JoinColumn(name = "keys_id")}, inverseJoinColumns = {@JoinColumn(name = "Taxon_id")}) @Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE }) @JsonSerialize(contentUsing = TaxonSerializer.class) public Set<Taxon> getTaxa() { return taxa; }
@OneToMany(fetch = FetchType.LAZY, orphanRemoval = true) @JoinColumn(name = "annotatedObjId") @Where(clause = "annotatedObjType = 'IdentificationKey'") @Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.DELETE }) @JsonIgnore public Set<Annotation> getAnnotations() { return annotations; }
/** * @return the comments */ @OneToMany(fetch = FetchType.LAZY, orphanRemoval = true) @JoinColumn(name = "commentPage_id") @OrderBy("created DESC") @Where(clause = "commentPage_type = 'IdentificationKey'") @Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.DELETE }) @JsonIgnore public List<Comment> getComments() { return comments; }
@OneToMany(fetch = FetchType.LAZY, orphanRemoval = true) @JoinColumn(name = "annotatedObjId") @Where(clause = "annotatedObjType = 'Place'") @Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.DELETE }) @JsonIgnore public Set<Annotation> getAnnotations() { return annotations; }
/** * @return the annotations */ @OneToMany(fetch = FetchType.LAZY, orphanRemoval = true) @JoinColumn(name = "annotatedObjId") @Where(clause = "annotatedObjType = 'Reference'") @Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.DELETE }) @JsonIgnore public Set<Annotation> getAnnotations() { return annotations; }
/** * @return the annotations */ @OneToMany(fetch = FetchType.LAZY, orphanRemoval = true) @JoinColumn(name = "annotatedObjId") @Where(clause = "annotatedObjType = 'Identifier'") @Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.DELETE }) @JsonIgnore public Set<Annotation> getAnnotations() { return annotations; }
/** * @return the annotations */ @OneToMany(fetch = FetchType.LAZY, orphanRemoval = true) @JoinColumn(name = "annotatedObjId") @Where(clause = "annotatedObjType = 'Concept'") @Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.DELETE }) @JsonIgnore public Set<Annotation> getAnnotations() { return annotations; }
/** * @return the comments */ @OneToMany(fetch = FetchType.LAZY, orphanRemoval = true) @JoinColumn(name = "commentPage_id") @OrderBy("created DESC") @Where(clause = "commentPage_type = 'Concept'") @Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.DELETE }) @JsonIgnore public List<Comment> getComments() { return comments; }
/** * @return the annotations */ @OneToMany(fetch = FetchType.LAZY, orphanRemoval = true) @JoinColumn(name = "annotatedObjId") @Where(clause = "annotatedObjType = 'Distribution'") @Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.DELETE }) @JsonIgnore public Set<Annotation> getAnnotations() { return annotations; }
/** * @return the references */ @ManyToMany(fetch = FetchType.LAZY) @Cascade({ CascadeType.SAVE_UPDATE }) @JoinTable(name = "Distribution_Reference", joinColumns = { @JoinColumn(name = "Distribution_id") }, inverseJoinColumns = { @JoinColumn(name = "references_id") }) @JsonSerialize(contentUsing = ReferenceSerializer.class) public Set<Reference> getReferences() { return references; }
@Override @OneToMany(fetch = FetchType.LAZY, orphanRemoval = true) @JoinColumn(name = "annotatedObjId") @Where(clause = "annotatedObjType = 'PhylogeneticTree'") @Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.DELETE }) @JsonIgnore public Set<Annotation> getAnnotations() { return annotations; }
@Override @ManyToMany(fetch = FetchType.LAZY) @JoinTable(name = "Taxon_PhylogeneticTree", joinColumns = {@JoinColumn(name = "trees_id")}, inverseJoinColumns = {@JoinColumn(name = "Taxon_id")}) @Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE }) @JsonSerialize(contentUsing = TaxonSerializer.class) public Set<Taxon> getTaxa() { return taxa; }