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:no.abmu.questionnarie.domain.Post.java
/** * @hibernate.many-to-one column="FK_POSTTYPE_ID" * class="no.abmu.finances.domain.PostType" * cascade="save-update"//from w w w . j ava 2 s. co m * @hibernate.column name="FK_POSTTYPE_ID" * index="rdoum_FK_POSTPERIOD_ID_idx" */ @ManyToOne(cascade = { CascadeType.ALL }) @ForeignKey(name = "FK_POSTTYPE_ID", inverseName = "FK_POSTTYPE_ID") // @Cache(usage = CacheConcurrencyStrategy.READ_ONLY) public PostType getPostType() { return postType; }
From source file:com.hmsinc.epicenter.model.analysis.classify.Classifier.java
/** * @return the classifications/*w ww .java 2s . co m*/ */ @OneToMany(cascade = { CascadeType.ALL }, fetch = FetchType.EAGER, mappedBy = "classifier") @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE) @Fetch(FetchMode.JOIN) @Sort(type = SortType.NATURAL) public SortedSet<Classification> getClassifications() { return classifications; }
From source file:com.hmsinc.epicenter.model.health.PatientDetail.java
@OneToMany(cascade = { CascadeType.ALL }, fetch = FetchType.LAZY, mappedBy = "patientDetail") @Sort(type = SortType.NATURAL)/*from w w w . j ava 2 s . c o m*/ public SortedSet<Interaction> getInteractions() { return this.interactions; }
From source file:edu.harvard.med.screensaver.model.screenresults.ScreenResult.java
@ManyToMany(cascade = { CascadeType.ALL }) @JoinTable(name = "screenResultUpdateActivity", joinColumns = @JoinColumn(name = "screenResultId", nullable = false, updatable = false), inverseJoinColumns = @JoinColumn(name = "updateActivityId", nullable = false, updatable = false)) @Sort(type = SortType.NATURAL)//from ww w . ja va 2 s .co m @ToMany(singularPropertyName = "updateActivity", hasNonconventionalMutation = true /* model testing framework doesn't understand this is a containment relationship, and so requires addUpdateActivity() method*/) @Override public SortedSet<AdministrativeActivity> getUpdateActivities() { return _updateActivities; }
From source file:org.fao.geonet.domain.User.java
/** * Get all the user's addresses.//from w w w .j a va2s .co m * * @return all the user's addresses. */ @OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL, orphanRemoval = true) @JoinTable(name = "UserAddress", joinColumns = @JoinColumn(name = "userid"), inverseJoinColumns = { @JoinColumn(name = "addressid", referencedColumnName = "ID", unique = true) }) public Set<Address> getAddresses() { return _addresses; }
From source file:com.vmware.thinapp.workpool.model.VmImageModel.java
@OneToOne(cascade = CascadeType.ALL, orphanRemoval = true) @JoinColumn(name = "vmpattern_id") public VmPatternModel getVmPattern() { return vmPattern; }
From source file:com.hmsinc.epicenter.model.workflow.WorkflowState.java
/** * @return the transitionsTo// w ww. jav a 2s . co m */ @OneToMany(cascade = { CascadeType.ALL }, fetch = FetchType.LAZY, mappedBy = "toState") @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE) @Sort(type = SortType.NATURAL) public SortedSet<WorkflowTransition> getTransitionsTo() { return transitionsTo; }
From source file:org.tsm.concharto.model.Event.java
@OneToOne(cascade = CascadeType.ALL) @ForeignKey(name = "FK_EVENT_DISCUSS") public WikiText getDiscussion() { return discussion; }
From source file:com.liteoc.domain.rule.RuleSetRuleBean.java
@OneToMany(cascade = CascadeType.ALL) @JoinColumn(name = "rule_set_rule_id", nullable = false) public List<RuleActionBean> getActions() { return actions; }
From source file:com.vmware.thinapp.workpool.model.VmImageModel.java
@OneToMany(cascade = CascadeType.ALL, mappedBy = "instancer") public Set<LinkedWorkpoolModel> getWorkpools() { return workpools; }