Example usage for org.hibernate.annotations CascadeType ALL

List of usage examples for org.hibernate.annotations CascadeType ALL

Introduction

In this page you can find the example usage for org.hibernate.annotations CascadeType ALL.

Prototype

CascadeType ALL

To view the source code for org.hibernate.annotations CascadeType ALL.

Click Source Link

Document

Includes all types listed here.

Usage

From source file:gov.nih.nci.cabig.caaers2adeers.track.IntegrationLog.java

License:BSD License

@OneToMany(mappedBy = "integrationLog", fetch = FetchType.LAZY)
@Cascade(value = { CascadeType.ALL })
@Fetch(value = org.hibernate.annotations.FetchMode.SUBSELECT)
public List<IntegrationLogMessage> getIntegrationLogMessages() {
    return integrationLogMessages;
}

From source file:gov.nih.nci.cabig.ctms.acegi.acls.dao.beans.AclObjectIdentityBean.java

License:BSD License

@OneToMany(mappedBy = "parent", fetch = FetchType.LAZY)
@Cascade(value = { CascadeType.ALL })
public Set<AclObjectIdentityBean> getChildren() {
    return children;
}

From source file:gov.nih.nci.cabig.ctms.acegi.acls.dao.beans.AclObjectIdentityBean.java

License:BSD License

@OneToMany(mappedBy = "objectIdentity", fetch = FetchType.LAZY)
@Cascade(value = { CascadeType.ALL })
public Set<AclEntryBean> getAclEntries() {
    return aclEntries;
}

From source file:gov.nih.nci.cabig.ctms.acegi.acls.dao.beans.AclSidBean.java

License:BSD License

@OneToMany(mappedBy = "sid", fetch = FetchType.LAZY)
@Cascade(value = { CascadeType.ALL })
public Set<AclEntryBean> getAccessControlEntries() {
    return accessControlEntries;
}

From source file:gov.nih.nci.cabig.ctms.acegi.acls.dao.beans.AclSidBean.java

License:BSD License

@OneToMany(mappedBy = "aclSid", fetch = FetchType.LAZY)
@Cascade(value = { CascadeType.ALL })
public Set<AclObjectIdentityBean> getObjectIdentities() {
    return objectIdentities;
}

From source file:gov.nih.nci.firebird.data.FirebirdFile.java

License:Open Source License

/**
 * @return the byteDataSource//ww  w. ja va 2s.  co m
 */
@NotNull
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "byte_data_source_id")
@Cascade(value = { CascadeType.ALL, CascadeType.DELETE_ORPHAN })
@ForeignKey(name = "byte_data_source_fkey")
public AbstractByteDataSource getByteDataSource() {
    return byteDataSource;
}

From source file:gov.nih.nci.firebird.data.SubmittedTrainingCertificate.java

License:Open Source License

/**
 * @return certificate file.//from   w ww.ja v a 2  s . com
 */
@ManyToOne
@Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN })
@JoinColumn(name = "certificate_file_id")
@ForeignKey(name = "submitted_training_certificate_firebird_file_fkey")
@NotNull
@Override
public FirebirdFile getFile() {
    return file;
}

From source file:gt.entities.Country.java

@OneToMany(mappedBy = "country")
@Cascade(CascadeType.ALL)
public List<State> getStates() {
    return states;
}

From source file:gt.entities.ForumUser.java

@ManyToOne
@JoinColumn(name = "idUserProfile", referencedColumnName = "idUserProfile", nullable = false)
@Cascade(CascadeType.ALL)
public UserProfile getUserProfile() {
    return userProfile;
}

From source file:gt.entities.ForumUser.java

@ManyToOne
@JoinColumn(name = "idForum", referencedColumnName = "idForum", nullable = false)
@Cascade(CascadeType.ALL)
public Forum getForum() {
    return forum;
}