List of usage examples for javax.persistence CascadeType ALL
CascadeType ALL
To view the source code for javax.persistence CascadeType ALL.
Click Source Link
From source file:org.opencustomer.db.vo.calendar.EventVO.java
@OneToMany(mappedBy = "event", cascade = CascadeType.ALL) @Cascade({ org.hibernate.annotations.CascadeType.ALL, org.hibernate.annotations.CascadeType.DELETE_ORPHAN }) public Set<EventPersonVO> getEventPersons() { return eventPersons; }
From source file:org.orcid.persistence.jpa.entities.ProfileEntity.java
/** * @return the otherNames//www . j a va 2 s .c o m */ @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = PROFILE) @Sort(type = SortType.NATURAL) public SortedSet<OtherNameEntity> getOtherNames() { return otherNames; }
From source file:com.hmsinc.epicenter.model.permission.Organization.java
/** * @return the surveillanceTasks/* www . ja va 2s. c om*/ */ @OneToMany(cascade = { CascadeType.ALL }, fetch = FetchType.LAZY, mappedBy = "organization") public Set<SurveillanceTask> getSurveillanceTasks() { return surveillanceTasks; }
From source file:com.anite.zebra.hivemind.om.state.ZebraProcessInstance.java
/** * The process property set./*from w ww . j ava 2s .c o m*/ * * This is a set of ZebraProperty Set Entry objects. These in turn can hold * almost anythings * * You can easily introduce performance issues by putting too much in here! * Real data should reside in a related table. This should ONLY hold items * needed to process the flow. * * Items in here are effectively disposed of when the flow ends. * * Items are only passed back and forth from subflows if explictly marked to * do so in the designer. For those used to earlier versions of zebra push * outputs has been removed. * * @return */ @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "processInstance") @MapKey(name = "key") public Map<String, ZebraPropertySetEntry> getPropertySet() { return this.propertySet; }
From source file:edu.harvard.med.screensaver.model.libraries.Library.java
/** * Get the copies./*from w w w . j a v a 2s. c o m*/ * * @return the copies */ @OneToMany(mappedBy = "library", cascade = { CascadeType.ALL }) @Sort(type = SortType.NATURAL) public SortedSet<Copy> getCopies() { return _copies; }
From source file:gov.nih.nci.caarray.domain.project.Project.java
/** * @return public access profile//from w w w. j a v a2 s. c o m */ @ManyToOne(cascade = { CascadeType.ALL }, fetch = FetchType.LAZY) @JoinColumn(unique = true) @ForeignKey(name = "project_publicaccess_fk") @AttributePolicy(allow = SecurityPolicy.BROWSE_POLICY_NAME) public AccessProfile getPublicProfile() { return this.publicProfile; }
From source file:it.infn.ct.futuregateway.apiserver.resources.Task.java
/** * Retrieve the list of output files of the application. This is the list of * files the system has to retrieve after the application or the service has * completed its execution./* w ww . j a va2 s . c om*/ * * @return The output files */ @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER) @Fetch(FetchMode.SELECT) public List<TaskFileOutput> getOutputFiles() { return this.outputFiles; }
From source file:net.groupbuy.entity.Promotion.java
/** * ??// w w w.j a v a2s . c o m * * @return ? */ @Valid @OneToMany(mappedBy = "promotion", fetch = FetchType.LAZY, cascade = CascadeType.ALL, orphanRemoval = true) public List<GiftItem> getGiftItems() { return giftItems; }
From source file:edu.ku.brc.specify.datamodel.SpecifyUser.java
/** * @return - /* w ww . j a va 2 s . co m*/ * Set<SpAppResourceDir> */ @OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "specifyUser") @org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.ALL, org.hibernate.annotations.CascadeType.DELETE_ORPHAN }) public Set<SpAppResourceDir> getSpAppResourceDirs() { return spAppResourceDirs; }
From source file:org.orcid.persistence.jpa.entities.ProfileEntity.java
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = PROFILE, orphanRemoval = true) @Sort(type = SortType.NATURAL)//from w w w . j av a 2s . co m public SortedSet<ProfileKeywordEntity> getKeywords() { return keywords; }