@ForeignKey(name = "fk_assignment_reference") @MapsId("owner") @ManyToOne(fetch = FetchType.LAZY) @NotQueryable public RAssignment getOwner() { return owner; }
@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; }
@Id @ForeignKey(name = "fk_trigger_owner") @MapsId("owner") @ManyToOne(fetch = FetchType.LAZY) @NotQueryable public RObject getOwner() { return owner; }
@ManyToMany(fetch=FetchType.EAGER) @JoinTable( name="hel_usuari_permis", joinColumns= @JoinColumn(name="codi", referencedColumnName="codi"), inverseJoinColumns= @JoinColumn(name="permis", referencedColumnName="codi") ) @ForeignKey(name="hel_permis_usuari_fk", inverseName="hel_usuari_permis_fk") public Set<Permis> getPermisos() { return this.permisos; }
@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_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; }
@ForeignKey(name="none") @ManyToOne(fetch = FetchType.LAZY, optional = true) @JoinColumn(referencedColumnName = "oid", updatable = false, insertable = false, nullable = true) @NotFound(action = NotFoundAction.IGNORE) @NotQueryable // only for HQL use public RObject getTarget() { return null; }
@OneToMany(mappedBy = "owner", orphanRemoval = true) @ForeignKey(name = "none") @Cascade({org.hibernate.annotations.CascadeType.ALL}) public Set<RExclusion> getExclusion() { if (exclusion == null) { exclusion = new HashSet<>(); } return exclusion; }
@ForeignKey(name="none") @ManyToOne(fetch = FetchType.LAZY, optional = true) @JoinColumn(referencedColumnName = "oid", updatable = false, insertable = false, nullable = true) @NotFound(action = NotFoundAction.IGNORE) @NotQueryable // declared for HQL use only public RObject getTarget() { return null; }
@ForeignKey(name = "fk_acc_cert_wi_ref_owner") // max. 30 chars (Oracle) @MapsId("workItem") @ManyToOne(fetch = FetchType.LAZY) @NotQueryable public RAccessCertificationWorkItem getOwner() { return owner; }
@SuppressWarnings("deprecation") @ManyToOne(optional=true) @JoinColumn(name="expedient_tipus") @ForeignKey(name="hel_exptipus_seqdefany_fk") @Cascade({CascadeType.DELETE_ORPHAN}) public ExpedientTipus getExpedientTipus() { return expedientTipus; }
@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; }
@ForeignKey(name = "none") @MapsId("record") @ManyToOne(fetch = FetchType.LAZY) @JoinColumns({ @JoinColumn(name = COLUMN_RECORD_ID, referencedColumnName = "id") }) public RAuditEventRecord getRecord() { return record; }
@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; }
@ForeignKey(name = "fk_assignment_ext_string") @MapsId("owner") @ManyToOne(fetch = FetchType.LAZY) @PrimaryKeyJoinColumns({ @PrimaryKeyJoinColumn(name = "anyContainer_owner_owner_oid", referencedColumnName = "ownerOid"), @PrimaryKeyJoinColumn(name = "anyContainer_owner_id", referencedColumnName = "ownerId") }) @NotQueryable public RAssignmentExtension getAnyContainer() { return anyContainer; }
@ForeignKey(name = "fk_assignment_ext_long") @MapsId("owner") @ManyToOne(fetch = FetchType.LAZY) @PrimaryKeyJoinColumns({ @PrimaryKeyJoinColumn(name = "anyContainer_owner_owner_oid", referencedColumnName = "ownerOid"), @PrimaryKeyJoinColumn(name = "anyContainer_owner_id", referencedColumnName = "owner_type") }) @NotQueryable public RAssignmentExtension getAnyContainer() { return anyContainer; }
@ForeignKey(name = "fk_assignment_ext_date") @MapsId("owner") @ManyToOne(fetch = FetchType.LAZY) @PrimaryKeyJoinColumns({ @PrimaryKeyJoinColumn(name = "anyContainer_owner_owner_oid", referencedColumnName = "ownerOid"), @PrimaryKeyJoinColumn(name = "anyContainer_owner_id", referencedColumnName = "owner_type") }) @NotQueryable public RAssignmentExtension getAnyContainer() { return anyContainer; }
@Where(clause = RObjectReference.REFERENCE_TYPE + "= 3") @OneToMany(mappedBy = "owner", orphanRemoval = true) @ForeignKey(name = "none") @Cascade({org.hibernate.annotations.CascadeType.ALL}) public Set<RObjectReference<RFocus>> getApproverRef() { if (approverRef == null) { approverRef = new HashSet<>(); } return approverRef; }
@Id @ForeignKey(name = "fk_object_ext_boolean") @MapsId("owner") @ManyToOne(fetch = FetchType.LAZY) @NotQueryable public RObject getOwner() { return owner; }
@Id @ForeignKey(name = "fk_object_ext_date") @MapsId("owner") @ManyToOne(fetch = FetchType.LAZY) @NotQueryable public RObject getOwner() { return owner; }
@ForeignKey(name = "none") @MapsId("owner") @ManyToOne(fetch = FetchType.LAZY) @NotQueryable public RAssignment getOwner() { return owner; }
@ForeignKey(name = "fk_assignment_ext_boolean") @MapsId("owner") @ManyToOne(fetch = FetchType.LAZY) @PrimaryKeyJoinColumns({ @PrimaryKeyJoinColumn(name = "anyContainer_owner_owner_oid", referencedColumnName = "ownerOid"), @PrimaryKeyJoinColumn(name = "anyContainer_owner_id", referencedColumnName = "owner_type") }) @NotQueryable public RAssignmentExtension getAnyContainer() { return anyContainer; }
@ForeignKey(name = "fk_assignment_ext_poly") @MapsId("owner") @ManyToOne(fetch = FetchType.LAZY) @PrimaryKeyJoinColumns({ @PrimaryKeyJoinColumn(name = "anyContainer_owner_owner_oid", referencedColumnName = "ownerOid"), @PrimaryKeyJoinColumn(name = "anyContainer_owner_id", referencedColumnName = "owner_type") }) @NotQueryable public RAssignmentExtension getAnyContainer() { return anyContainer; }
@Id @ForeignKey(name = "fk_object_ext_reference") @MapsId("owner") @ManyToOne(fetch = FetchType.LAZY) @NotQueryable public RObject getOwner() { return owner; }
@ForeignKey(name = "fk_assignment_ext_reference") @MapsId("owner") @ManyToOne(fetch = FetchType.LAZY) @PrimaryKeyJoinColumns({ @PrimaryKeyJoinColumn(name = "anyContainer_owner_owner_oid", referencedColumnName = "ownerOid"), @PrimaryKeyJoinColumn(name = "anyContainer_owner_id", referencedColumnName = "owner_type") }) @NotQueryable public RAssignmentExtension getAnyContainer() { return anyContainer; }
@Id @ForeignKey(name = "fk_object_ext_poly") @MapsId("owner") @ManyToOne(fetch = FetchType.LAZY) @NotQueryable public RObject getOwner() { return owner; }
@Id @ForeignKey(name = "fk_object_ext_string") @MapsId("owner") @ManyToOne(fetch = FetchType.LAZY) @NotQueryable public RObject getOwner() { return owner; }
@Id @ForeignKey(name = "fk_lookup_table_owner") @MapsId("owner") @ManyToOne(fetch = FetchType.LAZY) @Override @NotQueryable public RLookupTable getOwner() { return owner; }
@ForeignKey(name = "fk_object_text_info_owner") @MapsId("owner") @ManyToOne(fetch = FetchType.LAZY) @NotQueryable public RObject getOwner() { return owner; }
@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; }
@ForeignKey(name="none") @ManyToOne(fetch = FetchType.LAZY, optional = true) @JoinColumn(referencedColumnName = "oid", updatable = false, insertable = false, nullable = true) @NotFound(action = NotFoundAction.IGNORE) @NotQueryable public RObject getTarget() { return null; }
@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; }