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:edu.duke.cabig.c3pr.domain.Epoch.java

License:BSD License

/**
 * Gets the stratification criteria internal.
 *
 * @return the stratification criteria internal
 *//*  w w  w . j  av  a  2s  .  c o m*/
@OneToMany(fetch = FetchType.LAZY, orphanRemoval = true)
@Cascade(value = { CascadeType.ALL })
@JoinColumn(name = "EPH_ID")
@Where(clause = "retired_indicator  = 'false'")
public List<StratificationCriterion> getStratificationCriteriaInternal() {
    return lazyListHelper.getInternalList(StratificationCriterion.class);
}

From source file:edu.duke.cabig.c3pr.domain.Epoch.java

License:BSD License

/**
 * Gets the eligibility criteria./*w w w . j ava  2  s .co  m*/
 *
 * @return the eligibility criteria
 */
@OneToMany(orphanRemoval = true)
@Cascade({ CascadeType.ALL })
@JoinColumn(name = "EPH_ID")
@Where(clause = "retired_indicator  = 'false'")
public List<EligibilityCriteria> getEligibilityCriteria() {
    return eligibilityCriteria;
}

From source file:edu.duke.cabig.c3pr.domain.Epoch.java

License:BSD License

/**
 * Gets the stratum groups internal./* ww w  . j  a  v a 2  s  .c  o m*/
 *
 * @return the stratum groups internal
 */
@OneToMany(fetch = FetchType.LAZY, orphanRemoval = true)
@Cascade(value = { CascadeType.ALL })
@JoinColumn(name = "epochs_id")
@Where(clause = "retired_indicator  = 'false'")
@OrderBy("stratumGroupNumber")
public List<StratumGroup> getStratumGroupsInternal() {
    return lazyListHelper.getInternalList(StratumGroup.class);
}

From source file:edu.duke.cabig.c3pr.domain.Epoch.java

License:BSD License

/**
 * Gets the randomization./*from   w  ww  .ja  va2 s  . c om*/
 *
 * @return the randomization
 */
@OneToOne(orphanRemoval = true)
@JoinColumn(name = "rndm_id")
@Cascade(value = { CascadeType.ALL })
public Randomization getRandomization() {
    return randomization;
}

From source file:edu.duke.cabig.c3pr.domain.HealthcareSite.java

License:BSD License

/**
 * Gets the healthcare site investigators.
 *
 * @return the healthcare site investigators
 *//*from w  ww  .j  av  a2  s.  co m*/
@OneToMany(mappedBy = "healthcareSite", fetch = FetchType.LAZY, orphanRemoval = true)
@Cascade(value = { CascadeType.ALL })
public List<HealthcareSiteInvestigator> getHealthcareSiteInvestigators() {
    return healthcareSiteInvestigators;
}

From source file:edu.duke.cabig.c3pr.domain.HealthcareSite.java

License:BSD License

/**
 * Gets the person users./*from  w  ww. java2s.  c om*/
 *
 * @return the person users
 */
@ManyToMany(mappedBy = "healthcareSites")
@Cascade(value = { CascadeType.ALL })
public List<PersonUser> getPersonUsers() {
    return personUsers;
}

From source file:edu.duke.cabig.c3pr.domain.HealthcareSite.java

License:BSD License

/**
 * Gets the investigator groups internal.
 *
 * @return the investigator groups internal
 *//*from  w  w w.ja  v  a2s.c o  m*/
@OneToMany(mappedBy = "healthcareSite", fetch = FetchType.LAZY, orphanRemoval = true)
@Cascade(value = { CascadeType.ALL })
public List<InvestigatorGroup> getInvestigatorGroupsInternal() {
    return lazyListHelper.getInternalList(InvestigatorGroup.class);
}

From source file:edu.duke.cabig.c3pr.domain.HealthcareSiteInvestigator.java

License:BSD License

/**
 * Gets the site investigator group affiliations.
 * //from   w  ww . ja va  2s  .c  o  m
 * @return the site investigator group affiliations
 */
@OneToMany(mappedBy = "healthcareSiteInvestigator", fetch = FetchType.LAZY, orphanRemoval = true)
@Cascade(value = { CascadeType.ALL })
public List<SiteInvestigatorGroupAffiliation> getSiteInvestigatorGroupAffiliations() {
    return siteInvestigatorGroupAffiliations;
}

From source file:edu.duke.cabig.c3pr.domain.Investigator.java

License:BSD License

/**
 * Gets the healthcare site investigators internal.
 * /*from   www .j  a  v a  2 s . c  o  m*/
 * @return the healthcare site investigators internal
 */
@OneToMany(mappedBy = "investigator", orphanRemoval = true)
@Cascade(value = { CascadeType.ALL })
public List<HealthcareSiteInvestigator> getHealthcareSiteInvestigatorsInternal() {
    return lazyListHelper.getInternalList(HealthcareSiteInvestigator.class);
}

From source file:edu.duke.cabig.c3pr.domain.Investigator.java

License:BSD License

@OneToMany(orphanRemoval = true)
@Cascade(value = { CascadeType.ALL })
@JoinColumn(name = "INV_ID")
@OrderBy("id")/*from  ww w .jav  a2 s  . com*/
public Set<ContactMechanism> getContactMechanisms() {
    return contactMechanisms;
}