List of usage examples for javax.persistence CascadeType MERGE
CascadeType MERGE
To view the source code for javax.persistence CascadeType MERGE.
Click Source Link
From source file:com.eryansky.entity.base.User.java
@ManyToMany(cascade = { CascadeType.PERSIST, CascadeType.MERGE }, fetch = FetchType.LAZY) @JoinTable(name = "T_BASE_USER_RESOURCE", joinColumns = { @JoinColumn(name = "USER_ID") }, inverseJoinColumns = { @JoinColumn(name = "RESOURCE_ID") }) // @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE,region = CacheConstants.HIBERNATE_CACHE_BASE) public List<Resource> getResources() { return resources; }
From source file:com.anite.zebra.hivemind.om.state.AbstractZebraTaskInstance.java
@ManyToOne(targetEntity = ZebraFOE.class, cascade = { CascadeType.PERSIST, CascadeType.MERGE }) public IFOE getFOE() { return this.FOE; }
From source file:com.hmsinc.epicenter.model.permission.Organization.java
/** * @return the workflow/*from w w w .j a va 2 s . c om*/ */ @ManyToOne(cascade = { CascadeType.PERSIST, CascadeType.MERGE }, fetch = FetchType.LAZY) @JoinColumn(name = "ID_WORKFLOW", unique = false, nullable = false, insertable = true, updatable = true) @ForeignKey(name = "FK_ORGANIZATION_1") @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE) public Workflow getWorkflow() { return workflow; }
From source file:com.hmsinc.epicenter.model.surveillance.SurveillanceSet.java
/** * @return the tasks/* w w w. j a va2 s .c om*/ */ @ManyToMany(cascade = { CascadeType.PERSIST, CascadeType.MERGE }, fetch = FetchType.LAZY, mappedBy = "sets", targetEntity = SurveillanceTask.class) public Set<SurveillanceTask> getTasks() { return tasks; }
From source file:com.hmsinc.epicenter.model.workflow.Event.java
/** * @return the investigations//from w ww .ja v a 2 s . c o m */ @ManyToMany(cascade = { CascadeType.PERSIST, CascadeType.MERGE }, mappedBy = "events", targetEntity = Investigation.class) @ForeignKey(name = "FK_INVESTIGATION_EVENT_1", inverseName = "FK_INVESTIGATION_EVENT_2") // for some strange reason caching here is causing bug TRX-609 //@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE) public Set<Investigation> getInvestigations() { return investigations; }
From source file:gov.nih.nci.firebird.data.AbstractPersonAssociation.java
/** * @return the person/* w w w . ja va 2 s .co m*/ */ @ManyToOne(cascade = { CascadeType.PERSIST, CascadeType.MERGE, CascadeType.REFRESH }, optional = false) @Cascade(org.hibernate.annotations.CascadeType.SAVE_UPDATE) @ForeignKey(name = "person_association_person_fkey") public Person getPerson() { return person; }
From source file:gov.nih.nci.firebird.data.ShippingDesignee.java
/** * @return the organization/*www . j a v a2 s .com*/ */ @ManyToOne(cascade = { CascadeType.PERSIST, CascadeType.MERGE, CascadeType.REFRESH }) @Cascade(org.hibernate.annotations.CascadeType.SAVE_UPDATE) @JoinColumn(name = "organization_id") @ForeignKey(name = "shipping_designee_organization_fkey") @Valid @NotNull public Organization getOrganization() { return organization; }
From source file:com.hmsinc.epicenter.model.surveillance.SurveillanceTask.java
/** * @return the organization//from w w w . ja v a 2 s . co m */ @ManyToOne(cascade = { CascadeType.PERSIST, CascadeType.MERGE }, fetch = FetchType.LAZY) @JoinColumn(name = "ID_ORGANIZATION", unique = false, nullable = false, insertable = true, updatable = true) @ForeignKey(name = "FK_SURVEILLANCE_TASK_2") @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE) public Organization getOrganization() { return organization; }
From source file:com.hmsinc.epicenter.model.provider.DataConnection.java
@ManyToMany(cascade = { CascadeType.PERSIST, CascadeType.MERGE }, fetch = FetchType.LAZY, targetEntity = Facility.class) @JoinTable(name = "DATA_CONN_FACILITY", joinColumns = { @JoinColumn(name = "ID_DATA_CONNECTION") }, inverseJoinColumns = { @JoinColumn(name = "ID_FACILITY") }) @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE) public Set<Facility> getFacilities() { return this.facilities; }
From source file:gov.nih.nci.firebird.data.OrganizationAssociation.java
/** * @return the organization role//from w w w . ja va 2 s . c o m */ @ManyToOne(cascade = { CascadeType.PERSIST, CascadeType.MERGE, CascadeType.REFRESH }, optional = false) @Cascade(org.hibernate.annotations.CascadeType.SAVE_UPDATE) @ForeignKey(name = "organization_association_organization_role_fkey") @JoinColumn(name = "organization_role_id") public AbstractOrganizationRole getOrganizationRole() { return organizationRole; }