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:ca.mcgill.cs.swevo.qualyzer.model.Project.java
/** * @return the participants/*www. ja v a2 s . c o m*/ */ @OneToMany(cascade = { CascadeType.ALL }, fetch = FetchType.EAGER) @JoinColumn(name = "project_persistenceid", nullable = false) @OrderColumn(name = "index") public List<Participant> getParticipants() { return fParticipants; }
From source file:com.infinities.keystone4j.model.catalog.Service.java
@JsonView(Views.Basic.class) @OneToMany(fetch = FetchType.LAZY, mappedBy = "service", cascade = CascadeType.ALL) public Set<Endpoint> getEndpoints() { return endpoints; }
From source file:org.openremote.devicediscovery.domain.DiscoveredDevice.java
/** * Gets the device attrs./*from w ww. j a va 2s.c o m*/ * * @return the device attrs */ @OneToMany(mappedBy = "discoveredDevice", cascade = CascadeType.ALL, fetch = FetchType.EAGER) public List<DiscoveredDeviceAttr> getDeviceAttrs() { return deviceAttrs; }
From source file:mx.ecosur.multigame.manantiales.entity.CheckCondition.java
/** * @return the violators//ww w. jav a2 s . c o m */ @ManyToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER) public Set<ManantialesFicha> getViolators() { if (violators == null) violators = new HashSet<ManantialesFicha>(); return violators; }
From source file:at.reinisoft.domain.UserRole.java
/** * @return the users.//w w w . j a va 2s.c o m */ @ManyToMany(mappedBy = "userRoles", cascade = CascadeType.ALL) public Set<User> getUsers() { return this.users; }
From source file:ca.mcgill.cs.swevo.qualyzer.model.AnnotatedDocument.java
@OneToMany(cascade = { CascadeType.ALL }, fetch = FetchType.LAZY, orphanRemoval = true, mappedBy = "document") @MapKey(name = "offset") @Override/*from w ww . j ava 2 s .c om*/ public Map<Integer, Fragment> getFragments() { return fFragments; }
From source file:org.projectforge.fibu.EingangsrechnungDO.java
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, mappedBy = "eingangsrechnung") @IndexColumn(name = "number", base = 1) @Override//ww w . j a v a 2 s . c o m public List<EingangsrechnungsPositionDO> getPositionen() { return this.positionen; }
From source file:org.bwgz.swim.openlane.data.model.Event.java
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER) public Set<OpenLane> getOpenLanes() { return openLanes; }
From source file:com.gihan.model.Payment.java
@OneToOne(cascade = CascadeType.ALL, mappedBy = "payment") public PaymentSchedule getPaymentSchedule() { return paymentSchedule; }
From source file:no.abmu.user.domain.UserGroup.java
/** * getPrincipalChildren./*from w w w. j a v a 2 s.c o m*/ * * @return * * @hibernate.bag cascade="save-update" lazy="true" inverse="false" * @hibernate.key column="FK_GROUP_ID" * @hibernate.key-column name="FK_GROUP_ID" index="principal_FK_GROUP_ID_idx" * @hibernate.one-to-many class="no.abmu.user.domain.Principal" * @hibernate.collection-key column="FK_GROUP_ID" * @hibernate.collection-key-column name="FK_GROUP_ID" index="principal_FK_GROUP_ID_idx" * @hibernate.collection-one-to-many class="no.abmu.user.domain.Principal" */ @OneToMany(cascade = { CascadeType.ALL }, targetEntity = Principal.class, mappedBy = "parentGroup", fetch = FetchType.EAGER) public List<Principal> getPrincipalChildren() { return principalChildren; }