本文整理汇总了Java中org.hibernate.annotations.OnDelete类的典型用法代码示例。如果您正苦于以下问题:Java OnDelete类的具体用法?Java OnDelete怎么用?Java OnDelete使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
OnDelete类属于org.hibernate.annotations包,在下文中一共展示了OnDelete类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getEnvModifiers
import org.hibernate.annotations.OnDelete; //导入依赖的package包/类
@Cascade(CascadeType.ALL)
@OneToMany(mappedBy = "taskData")
@OnDelete(action = OnDeleteAction.CASCADE)
public List<EnvironmentModifierData> getEnvModifiers() {
return envModifiers;
}
示例2: getTaskRuntimeData
import org.hibernate.annotations.OnDelete; //导入依赖的package包/类
@ManyToOne(fetch = FetchType.LAZY)
@OnDelete(action = OnDeleteAction.CASCADE)
@JoinColumns(value = { @JoinColumn(name = "JOB_ID", referencedColumnName = "TASK_ID_JOB"),
@JoinColumn(name = "TASK_ID", referencedColumnName = "TASK_ID_TASK") })
public TaskData getTaskRuntimeData() {
return taskRuntimeData;
}
示例3: getExecuterInformationData
import org.hibernate.annotations.OnDelete; //导入依赖的package包/类
@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;
}
示例4: getVariables
import org.hibernate.annotations.OnDelete; //导入依赖的package包/类
@Cascade(CascadeType.ALL)
@OneToMany(fetch = FetchType.LAZY, mappedBy = "taskData")
@OnDelete(action = OnDeleteAction.CASCADE)
public Map<String, TaskDataVariable> getVariables() {
return variables;
}
示例5: getIfBranch
import org.hibernate.annotations.OnDelete; //导入依赖的package包/类
@OneToOne(fetch = FetchType.LAZY)
@OnDelete(action = OnDeleteAction.CASCADE)
public TaskData getIfBranch() {
return ifBranch;
}
示例6: getSelectionScripts
import org.hibernate.annotations.OnDelete; //导入依赖的package包/类
@Cascade(CascadeType.ALL)
@OneToMany(fetch = FetchType.LAZY, mappedBy = "taskData")
@OnDelete(action = OnDeleteAction.CASCADE)
public List<SelectionScriptData> getSelectionScripts() {
return selectionScripts;
}
示例7: getDataspaceSelectors
import org.hibernate.annotations.OnDelete; //导入依赖的package包/类
@Cascade(CascadeType.ALL)
@OneToMany(fetch = FetchType.LAZY, mappedBy = "taskData")
@OnDelete(action = OnDeleteAction.CASCADE)
public List<SelectorData> getDataspaceSelectors() {
return dataspaceSelectors;
}
示例8: getVariables
import org.hibernate.annotations.OnDelete; //导入依赖的package包/类
@Cascade(org.hibernate.annotations.CascadeType.ALL)
@OneToMany(fetch = FetchType.LAZY, mappedBy = "jobData")
@OnDelete(action = OnDeleteAction.CASCADE)
public Map<String, JobDataVariable> getVariables() {
return variables;
}
示例9: getTasks
import org.hibernate.annotations.OnDelete; //导入依赖的package包/类
@OneToMany(mappedBy = "jobData", fetch = FetchType.LAZY)
@OnDelete(action = OnDeleteAction.CASCADE)
public List<TaskData> getTasks() {
return tasks;
}
示例10: getUser
import org.hibernate.annotations.OnDelete; //导入依赖的package包/类
@ManyToOne
@JoinColumn(name = FieldConstants.USER_ID, nullable = false)
@OnDelete(action = OnDeleteAction.CASCADE)
public User getUser() {
return user;
}
示例11: getGroup
import org.hibernate.annotations.OnDelete; //导入依赖的package包/类
@ManyToOne
@JoinColumn(name = FieldConstants.GROUP_ID, nullable = false)
@OnDelete(action = OnDeleteAction.CASCADE)
public Group getGroup() {
return group;
}