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:mx.ecosur.multigame.manantiales.entity.CheckCondition.java
/** * @return the player */ @ManyToOne(cascade = CascadeType.ALL, fetch = FetchType.EAGER) public GridPlayer getPlayer() { return agent; }
From source file:example.FunWithPermissions.java
@ReadPermission(any = { NegativeIntegerUserCheck.class }) @UpdatePermission(any = { NegativeIntegerUserCheck.class }) @OneToOne(cascade = CascadeType.ALL, fetch = FetchType.LAZY) @JoinColumn(name = "child_id") public Child getRelation3() { return relation3; }
From source file:com.oakhole.auth.entity.Menu.java
@OneToMany(targetEntity = Menu.class, cascade = CascadeType.ALL, mappedBy = "parent") @Fetch(FetchMode.SUBSELECT)/*from w ww . j av a2s. c o m*/ @OrderBy("id asc") @Cache(usage = CacheConcurrencyStrategy.READ_WRITE) public List<Menu> getChildList() { return childList; }
From source file:tools.xor.db.pm.Task.java
@OneToMany(cascade = CascadeType.ALL, orphanRemoval = true) @OrderColumn(name = "dep_seq") @OrderBy("depSeq") public List<Task> getDependants() { return this.dependants; }
From source file:ch.systemsx.cisd.openbis.generic.shared.dto.SampleTypePE.java
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "entityTypeInternal") @Cascade(value = org.hibernate.annotations.CascadeType.DELETE_ORPHAN) private Set<SampleTypePropertyTypePE> getSampleTypePropertyTypesInternal() { return sampleTypePropertyTypes; }
From source file:org.carcv.core.model.file.FileEntry.java
/** * @return a list of FileCarImages of this FileEntry */// ww w. j av a2 s.com @Override @NotNull @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, targetEntity = FileCarImage.class, orphanRemoval = true) public List<FileCarImage> getCarImages() { return carImages; }
From source file:io.github.gammaliu.demo.domain.Person.java
@OneToOne(cascade = CascadeType.ALL) public Marketing getMarketing() { return marketing; }
From source file:ca.mcgill.cs.swevo.qualyzer.model.Fragment.java
/** * @return//from w ww .j a va2 s .c om */ @OneToMany(cascade = { CascadeType.ALL }, fetch = FetchType.EAGER, orphanRemoval = true) @CollectionId(columns = @Column(name = "COL_ID"), type = @Type(type = "string"), generator = "uuid-gen") public List<CodeEntry> getCodeEntries() { return fCodeEntries; }
From source file:com.testing26thjuly_.wmstudio.Table29.java
@JsonIgnoreProperties({ "table29ByColumn3", "table29sForColumn3" }) @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL, mappedBy = "table29ByColumn3") public List<Table29> getTable29sForColumn3() { return this.table29sForColumn3; }
From source file:com.webfileanalyzer.domain.FileStatistic.java
@JsonIgnore @ManyToOne(cascade = CascadeType.ALL, fetch = FetchType.EAGER) @JoinColumn(name = "fileInDB") public Files getFileInDB() { return fileInDB; }