当前位置: 首页>>代码示例>>Java>>正文


Java Cascade类代码示例

本文整理汇总了Java中org.hibernate.annotations.Cascade的典型用法代码示例。如果您正苦于以下问题:Java Cascade类的具体用法?Java Cascade怎么用?Java Cascade使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


Cascade类属于org.hibernate.annotations包,在下文中一共展示了Cascade类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getAnnotations

import org.hibernate.annotations.Cascade; //导入依赖的package包/类
@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;
}
 
开发者ID:RBGKew,项目名称:eMonocot,代码行数:9,代码来源:MeasurementOrFact.java

示例2: getEnvModifiers

import org.hibernate.annotations.Cascade; //导入依赖的package包/类
@Cascade(CascadeType.ALL)
@OneToMany(mappedBy = "taskData")
@OnDelete(action = OnDeleteAction.CASCADE)
public List<EnvironmentModifierData> getEnvModifiers() {
    return envModifiers;
}
 
开发者ID:ow2-proactive,项目名称:scheduling,代码行数:7,代码来源:TaskData.java

示例3: getAnnotations

import org.hibernate.annotations.Cascade; //导入依赖的package包/类
@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;
}
 
开发者ID:RBGKew,项目名称:powop,代码行数:9,代码来源:Identification.java

示例4: getExpedientTipus

import org.hibernate.annotations.Cascade; //导入依赖的package包/类
@SuppressWarnings("deprecation")
@ManyToOne(optional=true)
@JoinColumn(name="expedient_tipus")
@ForeignKey(name="hel_exptipus_seqdefany_fk")
@Cascade({CascadeType.DELETE_ORPHAN})
public ExpedientTipus getExpedientTipus() {
	return expedientTipus;
}
 
开发者ID:GovernIB,项目名称:helium,代码行数:9,代码来源:SequenciaDefaultAny.java

示例5: getDeltas

import org.hibernate.annotations.Cascade; //导入依赖的package包/类
@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;
}
 
开发者ID:Pardus-Engerek,项目名称:engerek,代码行数:10,代码来源:RAuditEventRecord.java

示例6: getChangedItems

import org.hibernate.annotations.Cascade; //导入依赖的package包/类
@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;
}
 
开发者ID:Pardus-Engerek,项目名称:engerek,代码行数:10,代码来源:RAuditEventRecord.java

示例7: getPropertyValues

import org.hibernate.annotations.Cascade; //导入依赖的package包/类
@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;
}
 
开发者ID:Pardus-Engerek,项目名称:engerek,代码行数:10,代码来源:RAuditEventRecord.java

示例8: getReferenceValues

import org.hibernate.annotations.Cascade; //导入依赖的package包/类
@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;
}
 
开发者ID:Pardus-Engerek,项目名称:engerek,代码行数:10,代码来源:RAuditEventRecord.java

示例9: getBooleans

import org.hibernate.annotations.Cascade; //导入依赖的package包/类
@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;
}
 
开发者ID:Pardus-Engerek,项目名称:engerek,代码行数:9,代码来源:RAssignmentExtension.java

示例10: getLongs

import org.hibernate.annotations.Cascade; //导入依赖的package包/类
@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;
}
 
开发者ID:Pardus-Engerek,项目名称:engerek,代码行数:9,代码来源:RAssignmentExtension.java

示例11: getStrings

import org.hibernate.annotations.Cascade; //导入依赖的package包/类
@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;
}
 
开发者ID:Pardus-Engerek,项目名称:engerek,代码行数:9,代码来源:RAssignmentExtension.java

示例12: getDates

import org.hibernate.annotations.Cascade; //导入依赖的package包/类
@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;
}
 
开发者ID:Pardus-Engerek,项目名称:engerek,代码行数:9,代码来源:RAssignmentExtension.java

示例13: getReferences

import org.hibernate.annotations.Cascade; //导入依赖的package包/类
@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;
}
 
开发者ID:Pardus-Engerek,项目名称:engerek,代码行数:9,代码来源:RAssignmentExtension.java

示例14: getPolys

import org.hibernate.annotations.Cascade; //导入依赖的package包/类
@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;
}
 
开发者ID:Pardus-Engerek,项目名称:engerek,代码行数:9,代码来源:RAssignmentExtension.java

示例15: getTargetSystemType

import org.hibernate.annotations.Cascade; //导入依赖的package包/类
@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;
}
 
开发者ID:Pardus-Engerek,项目名称:engerek,代码行数:10,代码来源:RConnector.java


注:本文中的org.hibernate.annotations.Cascade类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。