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:com.dp2345.entity.Member.java

/**
 * ?// w w w  .  j a  v  a 2s .c  o m
 * 
 * @return 
 */
@OneToMany(mappedBy = "member", fetch = FetchType.LAZY, cascade = CascadeType.REMOVE)
@OrderBy("createDate desc")
public Set<Consultation> getConsultations() {
    return consultations;
}

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

/**
 * ??//from w w w.java 2  s  .  co  m
 * 
 * @return growthDiaries
 * @see [?#?#?]
 */
@OneToMany(mappedBy = "member", fetch = FetchType.LAZY, cascade = CascadeType.REMOVE)
public Set<GrowthDiary> getGrowthDiaries() {
    return growthDiaries;
}

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

/**
 * ???/* w ww.j  av  a  2  s.co  m*/
 * 
 * @return diaryTransponds
 * @see [?#?#?]
 */
@OneToMany(mappedBy = "member", fetch = FetchType.LAZY, cascade = CascadeType.REMOVE)
public Set<DiaryTranspond> getDiaryTransponds() {
    return diaryTransponds;
}

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

/**
 * ?//from w w w. j  av  a 2  s .  c o m
 * 
 * @return 
 */
@OneToMany(mappedBy = "member", fetch = FetchType.LAZY, cascade = CascadeType.REMOVE)
public Set<ProductNotify> getProductNotifies() {
    return productNotifies;
}

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

/**
 * ??/*from   w w w  .  jav a 2s.  c o  m*/
 * 
 * @return diaryComments
 * @see [?#?#?]
 */
@OneToMany(mappedBy = "member", fetch = FetchType.LAZY, cascade = CascadeType.REMOVE)
public Set<DiaryComment> getDiaryComments() {
    return diaryComments;
}

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

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

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

/**
 * ???//  w  w  w .jav  a  2  s  . co m
 * 
 * @return diaryCollections
 * @see [?#?#?]
 */
@OneToMany(mappedBy = "member", fetch = FetchType.LAZY, cascade = CascadeType.REMOVE)
public Set<DiaryCollection> getDiaryCollections() {
    return diaryCollections;
}

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

/**
 * ????//from w  w w.  ja  va 2 s.c  o m
 * 
 * @return ???
 */
@OneToMany(mappedBy = "sender", fetch = FetchType.LAZY, cascade = CascadeType.REMOVE)
public Set<Message> getOutMessages() {
    return outMessages;
}

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

/**
 * ??//from www  . j  a v a 2 s .co  m
 * 
 * @return diaryAgrees
 * @see [?#?#?]
 */
@OneToMany(mappedBy = "member", fetch = FetchType.LAZY, cascade = CascadeType.REMOVE)
public Set<DiaryAgree> getDiaryAgrees() {
    return diaryAgrees;
}

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

/**
 * ??AT//  w  w w.  j  av a  2  s.co m
 * 
 * @return atUsers
 * @see [?#?#?]
 */
@OneToMany(mappedBy = "member", fetch = FetchType.LAZY, cascade = CascadeType.REMOVE)
public Set<AtUser> getAtUsers() {
    return atUsers;
}