Java Code Examples for org.hibernate.annotations.OnDelete

The following examples show how to use org.hibernate.annotations.OnDelete. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: scheduling   Source File: TaskData.java    License: GNU Affero General Public License v3.0 5 votes vote down vote up
@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;
}
 
Example 2
Source Project: scheduling   Source File: TaskData.java    License: GNU Affero General Public License v3.0 5 votes vote down vote up
@Cascade(CascadeType.ALL)
@OneToMany(fetch = FetchType.LAZY, mappedBy = "taskData")
@OnDelete(action = OnDeleteAction.CASCADE)
@OrderColumn(name = "SCRIPT_ORDER")
public List<SelectionScriptData> getSelectionScripts() {
    return selectionScripts;
}
 
Example 3
Source Project: scheduling   Source File: TaskData.java    License: GNU Affero General Public License v3.0 5 votes vote down vote up
@Cascade(CascadeType.ALL)
@OneToMany(fetch = FetchType.LAZY, mappedBy = "taskData")
@OnDelete(action = OnDeleteAction.CASCADE)
@OrderColumn(name = "DS_SELECTOR_ORDER")
public List<SelectorData> getDataspaceSelectors() {
    return dataspaceSelectors;
}
 
Example 4
@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;
}
 
Example 5
Source Project: scheduling   Source File: TaskData.java    License: GNU Affero General Public License v3.0 4 votes vote down vote up
@Cascade(CascadeType.ALL)
@OneToMany(mappedBy = "taskData")
@OnDelete(action = OnDeleteAction.CASCADE)
public Set<EnvironmentModifierData> getEnvModifiers() {
    return envModifiers;
}
 
Example 6
Source Project: scheduling   Source File: TaskData.java    License: GNU Affero General Public License v3.0 4 votes vote down vote up
@Cascade(CascadeType.ALL)
@OneToMany(fetch = FetchType.LAZY, mappedBy = "taskData")
@OnDelete(action = OnDeleteAction.CASCADE)
public Map<String, TaskDataVariable> getVariables() {
    return variables;
}
 
Example 7
Source Project: scheduling   Source File: TaskData.java    License: GNU Affero General Public License v3.0 4 votes vote down vote up
@OneToOne(fetch = FetchType.LAZY)
@OnDelete(action = OnDeleteAction.CASCADE)
public TaskData getIfBranch() {
    return ifBranch;
}
 
Example 8
Source Project: scheduling   Source File: JobData.java    License: GNU Affero General Public License v3.0 4 votes vote down vote up
@Cascade(org.hibernate.annotations.CascadeType.ALL)
@OneToMany(fetch = FetchType.LAZY, mappedBy = "jobData")
@OnDelete(action = OnDeleteAction.CASCADE)
public Map<String, JobDataVariable> getVariables() {
    return variables;
}
 
Example 9
Source Project: scheduling   Source File: JobData.java    License: GNU Affero General Public License v3.0 4 votes vote down vote up
@OneToMany(mappedBy = "jobData", fetch = FetchType.LAZY)
@OnDelete(action = OnDeleteAction.CASCADE)
public List<TaskData> getTasks() {
    return tasks;
}