当前位置: 首页>>代码示例>>Java>>正文


Java CascadeType.ALL属性代码示例

本文整理汇总了Java中javax.persistence.CascadeType.ALL属性的典型用法代码示例。如果您正苦于以下问题:Java CascadeType.ALL属性的具体用法?Java CascadeType.ALL怎么用?Java CascadeType.ALL使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在javax.persistence.CascadeType的用法示例。


在下文中一共展示了CascadeType.ALL属性的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getPlanServices

@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, orphanRemoval = true)
@JoinColumn(name = "user_id", insertable = false, nullable = false, updatable = false)
// MOSCOW
@Fetch(FetchMode.SELECT)
// Это отсечение дублирования при джойне таблици, т.к. в QPlanService есть @OneToOne к QService, и в нем есть @OneToMany к QServiceLang - дублится по
// количеству переводов
// This is the truncation of the duplication when the table joins, since In QPlanService there is @OneToOne to QService, and there is @OneToMany to
// QServiceLang - it is duplicated by the number of translations.
public List<QPlanService> getPlanServices() {
    return planServices;
}
 
开发者ID:bcgov,项目名称:sbc-qsystem,代码行数:11,代码来源:QUser.java

示例2: getStrings

@OneToMany(cascade = CascadeType.ALL, mappedBy = "bundle")
@Fetch(value = FetchMode.SELECT)
@MapKey(name = "locale")
public Map<String, LanguageString> getStrings()
{
	return strings;
}
 
开发者ID:equella,项目名称:Equella,代码行数:7,代码来源:LanguageBundle.java

示例3: getGoods8JPASet

@OneToMany(targetEntity = Goods8JPA.class, cascade = CascadeType.ALL,
          fetch = FetchType.EAGER)
@JoinColumn(name = "join_user_goodsSet", foreignKey =
@ForeignKey(name = "join_fk_user_goodsSet"))
@JoinTable(name = "jpa_user_goodsSet_table", foreignKey =
@ForeignKey(name = "table_user_goodsSet"))
public Set<Goods8JPA> getGoods8JPASet()
{
    return goods8JPASet;
}
 
开发者ID:SessionFactory,项目名称:tinyshop8,代码行数:10,代码来源:User8JPA.java

示例4: getCode

/**
 * @return code
 */
@OneToOne(fetch = FetchType.EAGER, cascade = CascadeType.ALL)
@JoinColumn(name = "idCode")
public AccessCodeEntity getCode() {

  return this.code;
}
 
开发者ID:oasp,项目名称:oasp-tutorial-sources,代码行数:9,代码来源:VisitorEntity.java

示例5: getRoles

@XmlTransient
 @LazyCollection(LazyCollectionOption.EXTRA)
 @ManyToMany(fetch=FetchType.LAZY, cascade=CascadeType.ALL)
 @JoinTable(name = "role_mappings", joinColumns = { 
@JoinColumn(name = "user_id", nullable = false, updatable = false) }, 
inverseJoinColumns = { @JoinColumn(name = "role", 
		nullable = false, updatable = false) })
 public List<Role> getRoles() {return _roles;}
 
开发者ID:awslabs,项目名称:aws-photosharing-example,代码行数:8,代码来源:User.java

示例6: getSpecificationValues

/**
 * 获取规格值
 * 
 * @return 规格值
 */
@Valid
@NotEmpty
@OneToMany(mappedBy = "specification", fetch = FetchType.LAZY, cascade = CascadeType.ALL, orphanRemoval = true)
@OrderBy("order asc")
public List<SpecificationValue> getSpecificationValues() {
	return specificationValues;
}
 
开发者ID:justinbaby,项目名称:my-paper,代码行数:12,代码来源:Specification.java

示例7: getShippingItems

/**
 * 获取发货项
 * 
 * @return 发货项
 */
@Valid
@NotEmpty
@OneToMany(mappedBy = "shipping", fetch = FetchType.LAZY, cascade = CascadeType.ALL)
public List<ShippingItem> getShippingItems() {
	return shippingItems;
}
 
开发者ID:justinbaby,项目名称:my-paper,代码行数:11,代码来源:Shipping.java

示例8: getOrderDetails

@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="order")
public Set<OrderDetail> getOrderDetails() {
    return this.orderDetails;
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:4,代码来源:Order.java

示例9: getOrderDetails

@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="product")
public Set<OrderDetail> getOrderDetails() {
    return this.orderDetails;
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:4,代码来源:Product.java

示例10: getEmployees

@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="office")
public Set<Employee> getEmployees() {
    return this.employees;
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:4,代码来源:Office.java

示例11: getDepartments

@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="company")
public Set<Department> getDepartments() {
    return this.departments;
}
 
开发者ID:amritbhat786,项目名称:DocIT,代码行数:4,代码来源:Company.java

示例12: getEmployees

@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.EAGER, mappedBy="company")
public Set<Employee> getEmployees() {
    return this.employees;
}
 
开发者ID:amritbhat786,项目名称:DocIT,代码行数:4,代码来源:Company.java

示例13: getEmployees

@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="department")
public Set<Employee> getEmployees() {
    return this.employees;
}
 
开发者ID:amritbhat786,项目名称:DocIT,代码行数:4,代码来源:Department.java

示例14: getSystemMenus

@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "systemMenu")
public Set<SystemMenu> getSystemMenus() {
	return this.systemMenus;
}
 
开发者ID:wengwh,项目名称:plumdo-work,代码行数:4,代码来源:SystemMenu.java

示例15: getFormDatas

@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "formInstance")
public Set<FormData> getFormDatas() {
	return this.formDatas;
}
 
开发者ID:wengwh,项目名称:plumdo-work,代码行数:4,代码来源:FormInstance.java


注:本文中的javax.persistence.CascadeType.ALL属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。