本文整理匯總了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}