Example usage for javax.persistence CascadeType PERSIST

List of usage examples for javax.persistence CascadeType PERSIST

Introduction

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

Prototype

CascadeType PERSIST

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

Click Source Link

Document

Cascade persist operation

Usage

From source file:velo.entity.Resource.java

/**
 * Get a list of ResourceAttribute entities related to this Resource
 * //from   w w w  . j  av  a  2s .c o m
 * @return The list of ResourceAttributes
 */
@OneToMany(mappedBy = "resource", fetch = FetchType.LAZY, cascade = { CascadeType.PERSIST, CascadeType.REMOVE })
@OrderBy("priority DESC")
@Deprecated //never use this directly externally, use getAttributes() instead!
public Set<ResourceAttribute> getResourceAttributes() {
    return resourceAttributes;
}