Java 类org.hibernate.annotations.ForeignKey 实例源码
项目:engerek
文件:RAssignmentReference.java
@ForeignKey(name = "fk_assignment_reference")
@MapsId("owner")
@ManyToOne(fetch = FetchType.LAZY)
@NotQueryable
public RAssignment getOwner() {
return owner;
}
项目:engerek
文件:RObjectTemplate.java
@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;
}
项目:engerek
文件:RTrigger.java
@Id
@ForeignKey(name = "fk_trigger_owner")
@MapsId("owner")
@ManyToOne(fetch = FetchType.LAZY)
@NotQueryable
public RObject getOwner() {
return owner;
}
项目:helium
文件:Usuari.java
@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;
}
项目:engerek
文件:RService.java
@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;
}
项目:engerek
文件:ROrg.java
@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;
}
项目:engerek
文件:RCertWorkItemReference.java
@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;
}
项目:engerek
文件:RAbstractRole.java
@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;
}
项目:engerek
文件:RAssignmentReference.java
@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;
}
项目:engerek
文件:RCertWorkItemReference.java
@ForeignKey(name = "fk_acc_cert_wi_ref_owner") // max. 30 chars (Oracle)
@MapsId("workItem")
@ManyToOne(fetch = FetchType.LAZY)
@NotQueryable
public RAccessCertificationWorkItem getOwner() {
return owner;
}
项目:helium
文件:SequenciaDefaultAny.java
@SuppressWarnings("deprecation")
@ManyToOne(optional=true)
@JoinColumn(name="expedient_tipus")
@ForeignKey(name="hel_exptipus_seqdefany_fk")
@Cascade({CascadeType.DELETE_ORPHAN})
public ExpedientTipus getExpedientTipus() {
return expedientTipus;
}
项目:engerek
文件:RTask.java
@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;
}
项目:engerek
文件:RAuditItem.java
@ForeignKey(name = "none")
@MapsId("record")
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumns({
@JoinColumn(name = COLUMN_RECORD_ID, referencedColumnName = "id")
})
public RAuditEventRecord getRecord() {
return record;
}
项目:engerek
文件:RAuditEventRecord.java
@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;
}
项目:engerek
文件:RAuditEventRecord.java
@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;
}
项目:engerek
文件:RAuditEventRecord.java
@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;
}
项目:engerek
文件:RAuditEventRecord.java
@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;
}
项目:engerek
文件:RObjectDeltaOperation.java
@ForeignKey(name = "none")
@MapsId("record")
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumns({
@JoinColumn(name = COLUMN_RECORD_ID, referencedColumnName = "id")
})
public RAuditEventRecord getRecord() {
return record;
}
项目:engerek
文件:RAExtString.java
@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;
}
项目:engerek
文件:RAExtLong.java
@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;
}
项目:engerek
文件:RAExtDate.java
@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;
}
项目:engerek
文件:RAbstractRole.java
@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;
}
项目:engerek
文件:ROExtBoolean.java
@Id
@ForeignKey(name = "fk_object_ext_boolean")
@MapsId("owner")
@ManyToOne(fetch = FetchType.LAZY)
@NotQueryable
public RObject getOwner() {
return owner;
}
项目:engerek
文件:ROExtDate.java
@Id
@ForeignKey(name = "fk_object_ext_date")
@MapsId("owner")
@ManyToOne(fetch = FetchType.LAZY)
@NotQueryable
public RObject getOwner() {
return owner;
}
项目:engerek
文件:RAssignmentExtension.java
@ForeignKey(name = "none")
@MapsId("owner")
@ManyToOne(fetch = FetchType.LAZY)
@NotQueryable
public RAssignment getOwner() {
return owner;
}
项目:engerek
文件:RAExtBoolean.java
@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;
}
项目:engerek
文件:RAExtPolyString.java
@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;
}
项目:engerek
文件:ROExtReference.java
@Id
@ForeignKey(name = "fk_object_ext_reference")
@MapsId("owner")
@ManyToOne(fetch = FetchType.LAZY)
@NotQueryable
public RObject getOwner() {
return owner;
}
项目:engerek
文件:RAExtReference.java
@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;
}
项目:engerek
文件:ROExtPolyString.java
@Id
@ForeignKey(name = "fk_object_ext_poly")
@MapsId("owner")
@ManyToOne(fetch = FetchType.LAZY)
@NotQueryable
public RObject getOwner() {
return owner;
}
项目:engerek
文件:ROExtString.java
@Id
@ForeignKey(name = "fk_object_ext_string")
@MapsId("owner")
@ManyToOne(fetch = FetchType.LAZY)
@NotQueryable
public RObject getOwner() {
return owner;
}
项目:engerek
文件:RLookupTableRow.java
@Id
@ForeignKey(name = "fk_lookup_table_owner")
@MapsId("owner")
@ManyToOne(fetch = FetchType.LAZY)
@Override
@NotQueryable
public RLookupTable getOwner() {
return owner;
}
项目:engerek
文件:RObjectTextInfo.java
@ForeignKey(name = "fk_object_text_info_owner")
@MapsId("owner")
@ManyToOne(fetch = FetchType.LAZY)
@NotQueryable
public RObject getOwner() {
return owner;
}
项目:engerek
文件:RConnector.java
@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;
}
项目:engerek
文件:REmbeddedReference.java
@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;
}
项目:engerek
文件:RUser.java
@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;
}
项目:engerek
文件:RUser.java
@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;
}
项目:engerek
文件:RUser.java
@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;
}