List of usage examples for javax.persistence CascadeType PERSIST
CascadeType PERSIST
To view the source code for javax.persistence CascadeType PERSIST.
Click Source Link
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; }