當前位置: 首頁>>代碼示例>>Java>>正文


Java CascadeType.ALL屬性代碼示例

本文整理匯總了Java中org.hibernate.annotations.CascadeType.ALL屬性的典型用法代碼示例。如果您正苦於以下問題:Java CascadeType.ALL屬性的具體用法?Java CascadeType.ALL怎麽用?Java CascadeType.ALL使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在org.hibernate.annotations.CascadeType的用法示例。


在下文中一共展示了CascadeType.ALL屬性的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getEnvModifiers

@Cascade(CascadeType.ALL)
@OneToMany(mappedBy = "taskData")
@OnDelete(action = OnDeleteAction.CASCADE)
public List<EnvironmentModifierData> getEnvModifiers() {
    return envModifiers;
}
 
開發者ID:ow2-proactive,項目名稱:scheduling,代碼行數:6,代碼來源:TaskData.java

示例2: getNumberParams

@Cascade({ CascadeType.ALL })
@JoinColumn(name = DbColumnNames.RESOURCE_ENTITY_ID, referencedColumnName = DbColumnNames.ENTITY_ID)
@OneToMany(fetch = FetchType.EAGER, orphanRemoval = true, targetEntity = NumberResourceParamImpl.class)
@Override
public Set<NumberResourceParam> getNumberParams() {
    return this.numberParams;
}
 
開發者ID:esacinc,項目名稱:sdcct,代碼行數:7,代碼來源:SdcctResourceImpl.java

示例3: getDistribution

/**
 * @return the distribution associated with this taxon
 */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "taxon", orphanRemoval = true)
@Cascade({ CascadeType.ALL })
@JsonManagedReference("distribution-taxon")
public Set<Distribution> getDistribution() {
	return distribution;
}
 
開發者ID:RBGKew,項目名稱:eMonocot,代碼行數:9,代碼來源:Taxon.java

示例4: getIdentifiers

/**
 * @return a list of identifiers the taxon
 */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "taxon", orphanRemoval = true)
@Cascade({ CascadeType.ALL })
@JsonManagedReference("identifier-taxon")
public Set<Identifier> getIdentifiers() {
	return identifiers;
}
 
開發者ID:RBGKew,項目名稱:eMonocot,代碼行數:9,代碼來源:Taxon.java

示例5: getVernacularNames

/**
 * @return a map of vernacularNames for the taxon
 */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "taxon", orphanRemoval = true)
@Cascade({ CascadeType.ALL })
@JsonManagedReference("vernacularNames-taxon")
public Set<VernacularName> getVernacularNames() {
	return vernacularNames;
}
 
開發者ID:RBGKew,項目名稱:eMonocot,代碼行數:9,代碼來源:Taxon.java

示例6: getUriParams

@Cascade({ CascadeType.ALL })
@JoinColumn(name = DbColumnNames.RESOURCE_ENTITY_ID, referencedColumnName = DbColumnNames.ENTITY_ID)
@OneToMany(fetch = FetchType.EAGER, orphanRemoval = true, targetEntity = UriResourceParamImpl.class)
@Override
public Set<UriResourceParam> getUriParams() {
    return this.uriParams;
}
 
開發者ID:esacinc,項目名稱:sdcct,代碼行數:7,代碼來源:SdcctResourceImpl.java

示例7: getDescriptions

/**
 * @return a map of descriptions about the taxon
 */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "taxon", orphanRemoval = true)
@Cascade({ CascadeType.ALL })
@JsonManagedReference("descriptions-taxon")
public Set<Description> getDescriptions() {
	return descriptions;
}
 
開發者ID:RBGKew,項目名稱:powop,代碼行數:9,代碼來源:Taxon.java

示例8: getTokenParams

@Cascade({ CascadeType.ALL })
@JoinColumn(name = DbColumnNames.RESOURCE_ENTITY_ID, referencedColumnName = DbColumnNames.ENTITY_ID)
@OneToMany(fetch = FetchType.EAGER, orphanRemoval = true, targetEntity = TokenResourceParamImpl.class)
@Override
public Set<TokenResourceParam> getTokenParams() {
    return this.tokenParams;
}
 
開發者ID:esacinc,項目名稱:sdcct,代碼行數:7,代碼來源:SdcctResourceImpl.java

示例9: getMeasurementsOrFacts

/**
 * @return a set of measurements or facts about the taxon
 */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "taxon", orphanRemoval = true)
@Cascade({ CascadeType.ALL })
@JsonManagedReference("measurementsOrFacts-taxon")
public Set<MeasurementOrFact> getMeasurementsOrFacts() {
	return measurementsOrFacts;
}
 
開發者ID:RBGKew,項目名稱:powop,代碼行數:9,代碼來源:Taxon.java

示例10: getExecuterInformationData

@Column(name = "EXECUTER_INFORMATION_DATA", length = Integer.MAX_VALUE)
@Cascade(CascadeType.ALL)
@Type(type = "org.hibernate.type.SerializableToBlobType", parameters = @org.hibernate.annotations.Parameter(name = SerializableToBlobType.CLASS_NAME, value = "java.lang.Object"))
@OnDelete(action = OnDeleteAction.CASCADE)
public ExecuterInformationData getExecuterInformationData() {
    return executerInformationData;
}
 
開發者ID:ow2-proactive,項目名稱:scheduling,代碼行數:7,代碼來源:TaskData.java

示例11: getQuantityParams

@Cascade({ CascadeType.ALL })
@JoinColumn(name = DbColumnNames.RESOURCE_ENTITY_ID, referencedColumnName = DbColumnNames.ENTITY_ID)
@OneToMany(fetch = FetchType.EAGER, orphanRemoval = true, targetEntity = QuantityResourceParamImpl.class)
@Override
public Set<QuantityResourceParam> getQuantityParams() {
    return this.quantityParams;
}
 
開發者ID:esacinc,項目名稱:sdcct,代碼行數:7,代碼來源:SdcctResourceImpl.java

示例12: getPostScript

@Cascade(CascadeType.ALL)
@OneToOne(fetch = FetchType.LAZY)
// disable foreign key, to be able to remove runtime data
@JoinColumn(name = "POST_SCRIPT_ID", foreignKey = @ForeignKey(name = "none", value = ConstraintMode.NO_CONSTRAINT))
public ScriptData getPostScript() {
    return postScript;
}
 
開發者ID:ow2-proactive,項目名稱:scheduling,代碼行數:7,代碼來源:TaskData.java

示例13: getCleanScript

@Cascade(CascadeType.ALL)
@OneToOne(fetch = FetchType.LAZY)
// disable foreign key, to be able to remove runtime data
@JoinColumn(name = "CLEAN_SCRIPT_ID", foreignKey = @ForeignKey(name = "none", value = ConstraintMode.NO_CONSTRAINT))
public ScriptData getCleanScript() {
    return cleanScript;
}
 
開發者ID:ow2-proactive,項目名稱:scheduling,代碼行數:7,代碼來源:TaskData.java

示例14: getFlowScript

@Cascade(CascadeType.ALL)
@OneToOne(fetch = FetchType.LAZY)
// disable foreign key, to be able to remove runtime data
@JoinColumn(name = "FLOW_SCRIPT_ID", foreignKey = @ForeignKey(name = "none", value = ConstraintMode.NO_CONSTRAINT))
public ScriptData getFlowScript() {
    return flowScript;
}
 
開發者ID:ow2-proactive,項目名稱:scheduling,代碼行數:7,代碼來源:TaskData.java

示例15: getDateParams

@Cascade({ CascadeType.ALL })
@JoinColumn(name = DbColumnNames.RESOURCE_ENTITY_ID, referencedColumnName = DbColumnNames.ENTITY_ID)
@OneToMany(fetch = FetchType.EAGER, orphanRemoval = true, targetEntity = DateResourceParamImpl.class)
@Override
public Set<DateResourceParam> getDateParams() {
    return this.dateParams;
}
 
開發者ID:esacinc,項目名稱:sdcct,代碼行數:7,代碼來源:SdcctResourceImpl.java


注:本文中的org.hibernate.annotations.CascadeType.ALL屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。