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:org.meruvian.yama.core.role.Role.java

@JsonIgnore
@OneToMany(mappedBy = "role", cascade = { CascadeType.REMOVE }, fetch = FetchType.LAZY)
public List<UserRole> getUsers() {
    return users;
}

From source file:org.meruvian.yama.repository.jpa.role.JpaRole.java

@JsonIgnore
@OneToMany(mappedBy = "role", cascade = { CascadeType.REMOVE }, fetch = FetchType.LAZY)
public List<JpaUserRole> getUsers() {
    return users;
}

From source file:be.fedict.trust.service.entity.TrustPointEntity.java

@OneToOne(optional = false, cascade = CascadeType.REMOVE)
public CertificateAuthorityEntity getCertificateAuthority() {
    return this.certificateAuthority;
}

From source file:be.fedict.eid.idp.entity.AttributeEntity.java

@OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.REMOVE, mappedBy = AttributeProtocolUriEntity.ATTRIBUTE_COLUMN_NAME)
public Set<AttributeProtocolUriEntity> getProtocolUris() {
    return this.protocolUris;
}

From source file:com.mycompany.model.Event.java

@OneToMany(cascade = CascadeType.REMOVE, mappedBy = "event")
public Set<EventAttendance> getAttendance() {
    return attendance;
}

From source file:com.infinities.skyport.entity.PermissionOperation.java

@XmlTransient
@OneToMany(fetch = FetchType.LAZY, mappedBy = "permissionOperation", cascade = CascadeType.REMOVE)
public Set<RolePermission> getRolePermissions() {
    return this.rolePermissions;
}

From source file:org.meruvian.yama.core.user.User.java

@JsonIgnore
@OneToMany(mappedBy = "user", cascade = { CascadeType.REMOVE }, fetch = FetchType.LAZY)
public List<UserRole> getRoles() {
    return roles;
}

From source file:com.mycompany.model.Venue.java

@OneToMany(cascade = CascadeType.REMOVE, mappedBy = "venue")
public Set<Event> getEvents() {
    return events;
}

From source file:com.infinities.skyport.entity.Role.java

@XmlTransient
@OneToMany(fetch = FetchType.LAZY, mappedBy = "role", cascade = CascadeType.REMOVE)
public Set<RolePermission> getRolePermissions() {
    return this.rolePermissions;
}

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

/**
 * ?  ??//from ww w. ja  v a2s.c  o  m
 * 
 * @return 
 */
@OneToMany(mappedBy = "cart", fetch = FetchType.LAZY, cascade = CascadeType.REMOVE)
public Set<CartSetProductItem> getSetItems() {
    return setItems;
}