Example usage for javax.persistence CascadeType REMOVE

List of usage examples for javax.persistence CascadeType REMOVE

Introduction

In this page you can find the example usage for javax.persistence CascadeType REMOVE.

Prototype

CascadeType REMOVE

To view the source code for javax.persistence CascadeType REMOVE.

Click Source Link

Document

Cascade remove operation

Usage

From source file:net.shopxx.entity.Order.java

@OneToMany(mappedBy = "order", fetch = FetchType.LAZY, cascade = CascadeType.REMOVE)
@OrderBy("createDate asc")
public Set<Payment> getPayments() {
    return payments;
}

From source file:net.shopxx.entity.Order.java

@OneToMany(mappedBy = "order", fetch = FetchType.LAZY, cascade = CascadeType.REMOVE)
@OrderBy("createDate asc")
public Set<Refunds> getRefunds() {
    return refunds;
}

From source file:com.jeefuse.system.security.model.GsysUser.java

/**
 * ------------------------------------------------------------------------
 * gsysRelUserRoles/*from w  ww  .  j  av a 2  s  . c o m*/
 * ------------------------------------------------------------------------
 * 
 * @generated
 */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "gsysUser", cascade = CascadeType.REMOVE)
public List<GsysRelUserRole> getGsysRelUserRoles() {
    if (this.gsysRelUserRoles == null) {
        this.gsysRelUserRoles = new ArrayList<GsysRelUserRole>();
    }
    return gsysRelUserRoles;
}

From source file:net.shopxx.entity.Order.java

@OneToMany(mappedBy = "order", fetch = FetchType.LAZY, cascade = CascadeType.REMOVE)
@OrderBy("createDate asc")
public Set<Shipping> getShippings() {
    return shippings;
}

From source file:net.shopxx.entity.Order.java

@OneToMany(mappedBy = "order", fetch = FetchType.LAZY, cascade = CascadeType.REMOVE)
@OrderBy("createDate asc")
public Set<Returns> getReturns() {
    return returns;
}

From source file:net.shopxx.entity.Order.java

@OneToMany(mappedBy = "order", fetch = FetchType.LAZY, cascade = CascadeType.REMOVE)
@OrderBy("createDate asc")
public Set<OrderLog> getOrderLogs() {
    return orderLogs;
}

From source file:com.dp2345.entity.Shop.java

/**
 * ??//from w  w w.j  a  v  a2  s .c  o m
 * 
 * @return ?
 */
@OneToMany(mappedBy = "shop", fetch = FetchType.LAZY, cascade = CascadeType.REMOVE)
public Set<Order> getOrders() {
    return orders;
}

From source file:com.sammyun.entity.Member.java

/**
 * @return  ?/*  w  w w  . j  a v a2 s.  c om*/
 */
@OneToMany(mappedBy = "member", fetch = FetchType.LAZY, cascade = CascadeType.REMOVE)
public Set<MemberDeviceInfo> getMemberDeviceInfos() {
    return memberDeviceInfos;
}

From source file:com.dp2345.entity.Shop.java

/**
 * ??//from   ww w.ja v a2  s .  c o m
 * 
 * @return ?
 */
@OneToMany(mappedBy = "shop", fetch = FetchType.LAZY, cascade = CascadeType.REMOVE)
public Set<Payment> getPayments() {
    return payments;
}

From source file:com.sammyun.entity.Member.java

/**
 * @return  /*from  w w  w  . j a va  2s .c  o m*/
 */
@OneToMany(mappedBy = "member", fetch = FetchType.LAZY, cascade = CascadeType.REMOVE)
public Set<PatriarchStudentMap> getPatriarchStudentMap() {
    return patriarchStudentMap;
}