Java Code Examples for javax.persistence.CascadeType#ALL

The following examples show how to use javax.persistence.CascadeType#ALL . 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 File: PersonElement.java    From cia with Apache License 2.0 5 votes vote down vote up
/**
* Gets the person assignment element.
*
* @return the person assignment element
*/
  @ManyToOne(targetEntity = PersonAssignmentElement.class, cascade = {
      CascadeType.ALL
  })
  @JoinColumn(name = "PERSON_ASSIGNMENT_ELEMENT_PE_0")
  public PersonAssignmentElement getPersonAssignmentElement() {
      return personAssignmentElement;
  }
 
Example 2
Source File: PersonDetailData.java    From cia with Apache License 2.0 5 votes vote down vote up
/**
* Gets the detail list.
*
* @return the detail list
*/
  @OneToMany(targetEntity = DetailData.class, cascade = {
      CascadeType.ALL
  })
  @JoinColumn(name = "DETAIL_LIST_PERSON_DETAIL_DA_0")
  public List<DetailData> getDetailList() {
      return this.detailList;
  }
 
Example 3
Source File: PersonElement.java    From cia with Apache License 2.0 5 votes vote down vote up
/**
* Gets the person detail element.
*
* @return the person detail element
*/
  @ManyToOne(targetEntity = PersonDetailElement.class, cascade = {
      CascadeType.ALL
  })
  @JoinColumn(name = "PERSON_DETAIL_ELEMENT_PERSON_0")
  public PersonDetailElement getPersonDetailElement() {
      return personDetailElement;
  }
 
Example 4
Source File: SwedenCountyElectoralRegion.java    From cia with Apache License 2.0 5 votes vote down vote up
/**
* Gets the landstingsvalkrets.
*
* @return the landstingsvalkrets
*/
  @OneToMany(targetEntity = SwedenCountyElectoralArea.class, cascade = {
      CascadeType.ALL
  })
  @JoinColumn(name = "LANDSTINGSVALKRETS_SWEDEN_CO_0")
  public List<SwedenCountyElectoralArea> getLandstingsvalkrets() {
      return this.landstingsvalkrets;
  }
 
Example 5
Source File: Operator.java    From juddi with Apache License 2.0 5 votes vote down vote up
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, targetEntity = KeyInfo.class)
public List<KeyInfo> getKeyInfo() {
        if (keyInfo == null) {
                keyInfo = new ArrayList<KeyInfo>();
        }
        return this.keyInfo;
}
 
Example 6
Source File: User.java    From hrms with Apache License 2.0 4 votes vote down vote up
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, mappedBy = "user")
public Set<Syslog> getSyslogs() {
	return this.syslogs;
}
 
Example 7
Source File: Person.java    From OA with GNU General Public License v3.0 4 votes vote down vote up
@OneToMany(mappedBy="personid",cascade={CascadeType.ALL})
public Set<Users> getUsers() {
	return users;
}
 
Example 8
Source File: Dept.java    From hrms with Apache License 2.0 4 votes vote down vote up
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, mappedBy = "dept")
public Set<EmployeeRedeploy> getEmployeeRedeploys() {
	return this.employeeRedeploys;
}
 
Example 9
Source File: SignedInfo.java    From juddi with Apache License 2.0 4 votes vote down vote up
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "signedInfo")
@OrderBy
public List<Reference> getReference() {
    return reference;
}
 
Example 10
Source File: Tmodel.java    From juddi with Apache License 2.0 4 votes vote down vote up
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "tmodel")
@OrderBy
public List<TmodelIdentifier> getTmodelIdentifiers() {
	return this.tmodelIdentifiers;
}
 
Example 11
Source File: BindingTemplate.java    From juddi with Apache License 2.0 4 votes vote down vote up
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "bindingTemplate")
@OrderBy
public List<TmodelInstanceInfo> getTmodelInstanceInfos() {
	return this.tmodelInstanceInfos;
}
 
Example 12
Source File: Company.java    From website with GNU Affero General Public License v3.0 4 votes vote down vote up
@JsonIgnore
@OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL, mappedBy = "ownerCompany")
public Set<Product> getProducts() {
	return products;
}
 
Example 13
Source File: OverviewDoc.java    From juddi with Apache License 2.0 4 votes vote down vote up
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "overviewDoc")
@OrderBy
public List<OverviewDocDescr> getOverviewDocDescrs() {
	return this.overviewDocDescrs;
}
 
Example 14
Source File: BusinessEntity.java    From juddi with Apache License 2.0 4 votes vote down vote up
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "businessEntity")
@OrderBy
       public List<Signature> getSignatures() {
               return signatures;
       }
 
Example 15
Source File: TSTerritory.java    From jeewx with Apache License 2.0 4 votes vote down vote up
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "TSTerritory")
public List<TSTerritory> getTSTerritorys() {
	return TSTerritorys;
}
 
Example 16
Source File: DynamicForm.java    From OA with GNU General Public License v3.0 4 votes vote down vote up
@OneToMany(mappedBy = "dynamicForm", cascade = { CascadeType.ALL })
@OrderBy("id ASC")
public Set<DynamicField> getDynamicFields() {
	return dynamicFields;
}
 
Example 17
Source File: User.java    From aws-photosharing-example with Apache License 2.0 4 votes vote down vote up
@XmlTransient
@LazyCollection(LazyCollectionOption.EXTRA)
@OneToMany(mappedBy = "user", orphanRemoval=true, fetch=FetchType.LAZY, cascade=CascadeType.ALL)
public List<Share> getShares() {return shares;}
 
Example 18
Source File: SignatureTransform.java    From juddi with Apache License 2.0 4 votes vote down vote up
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "signatureTransform")
@OrderBy
public List<SignatureTransformDataValue> getSignatureTransformDataValue() {
    return signatureTransformDataValue;
}
 
Example 19
Source File: BindingTemplate.java    From juddi with Apache License 2.0 4 votes vote down vote up
@OneToOne(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "bindingTemplate")
public BindingCategoryBag getCategoryBag() {
	return this.categoryBag;
}
 
Example 20
Source File: DictionaryCategory.java    From base-framework with Apache License 2.0 2 votes vote down vote up
/**
 * 获取所有叶子节点
 * 
 * @return List
 */
@OneToMany(fetch=FetchType.LAZY,mappedBy="parent",cascade={CascadeType.ALL})
public List<DictionaryCategory> getChildren() {
	return children;
}