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:uk.co.gidley.zebra.service.om.state.ProcessInstance.java
/** * @return// www . j av a2s.c om */ @OneToMany(fetch = FetchType.LAZY, cascade = { CascadeType.ALL }) public Set<TaskInstanceHistory> getHistoryInstances() { return this.historyInstances; }
From source file:com.doculibre.constellio.entities.RecordCollection.java
@OneToMany(mappedBy = "recordCollection", cascade = { CascadeType.ALL }, fetch = FetchType.LAZY, orphanRemoval = true) public Set<ConnectorInstance> getConnectorInstances() { return connectorInstances; }
From source file:com.doculibre.constellio.entities.Record.java
@OneToMany(cascade = { CascadeType.ALL }, fetch = FetchType.LAZY, orphanRemoval = true) @JoinTable(name = "Record_ExternalMetas", joinColumns = { @JoinColumn(name = "record_id") }, inverseJoinColumns = { @JoinColumn(name = "meta_id") }) @OrderColumn/*w w w . j av a2 s. c o m*/ public List<RecordMeta> getExternalMetas() { return externalMetas; }
From source file:ch.systemsx.cisd.openbis.generic.shared.dto.AttachmentPE.java
@OneToOne(fetch = FetchType.LAZY, cascade = CascadeType.ALL) @Cascade(value = org.hibernate.annotations.CascadeType.DELETE_ORPHAN) @NotNull(message = ValidationMessages.ATTACHMENT_CONTENT_NOT_NULL_MESSAGE) @JoinColumn(name = ColumnNames.ATTACHMENT_CONTENT_COLUMN) public AttachmentContentPE getAttachmentContent() { return attachmentContent; }
From source file:org.apromore.dao.model.ProcessModelVersion.java
@OneToMany(mappedBy = "processModelVersion", cascade = CascadeType.ALL, orphanRemoval = true) public Set<Object> getObjects() { return this.objects; }
From source file:org.opennms.netmgt.model.OnmsIpInterface.java
/** * <p>getNode</p>//from ww w.j a va 2 s .c om * * @return a {@link org.opennms.netmgt.model.OnmsNode} object. */ @ManyToOne(optional = false, fetch = FetchType.LAZY, cascade = CascadeType.ALL) @JoinColumn(name = "nodeId") @XmlElement(name = "nodeId") @XmlIDREF public OnmsNode getNode() { return m_node; }
From source file:edu.ku.brc.specify.datamodel.Division.java
/** * @return the address/*w ww.ja v a 2 s .c om*/ */ @ManyToOne(cascade = { CascadeType.ALL }, fetch = FetchType.LAZY) @JoinColumn(name = "AddressID", unique = false, nullable = true, insertable = true, updatable = true) public Address getAddress() { return address; }
From source file:com.hmsinc.epicenter.model.workflow.Investigation.java
/** * @return the attachments// w ww .ja v a 2 s .co m */ @OneToMany(cascade = { CascadeType.ALL }, fetch = FetchType.LAZY, mappedBy = "investigation") @Sort(type = SortType.NATURAL) public SortedSet<Attachment> getAttachments() { return attachments; }
From source file:gov.nih.nci.firebird.data.user.FirebirdUser.java
/** * @return the registrationCoordinatorRole *//*from w ww. java 2 s. co m*/ @OneToOne(mappedBy = "user") @Cascade({ org.hibernate.annotations.CascadeType.ALL, org.hibernate.annotations.CascadeType.DELETE_ORPHAN }) @Valid public RegistrationCoordinatorRole getRegistrationCoordinatorRole() { return registrationCoordinatorRole; }
From source file:org.photovault.replication.Change.java
@ManyToMany(targetEntity = Change.class, cascade = CascadeType.ALL) @JoinTable(name = "pv_change_relations", joinColumns = { @JoinColumn(name = "child_uuid") }, inverseJoinColumns = { @JoinColumn(name = "parent_uuid") }) public Set<Change<T>> getParentChanges() { return parentChanges; }