org.hibernate.annotations.FetchMode Java Examples
The following examples show how to use
org.hibernate.annotations.FetchMode.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TimingLocation.java From pikatimer with GNU General Public License v3.0 | 5 votes |
@OneToMany(mappedBy="timingLocation",fetch = FetchType.EAGER) @Fetch(FetchMode.SELECT) @Cascade(CascadeType.DELETE) public List<TimingLocationInput> getInputs() { //return associatedSplits.sorted((Split o1, Split o2) -> o1.getPosition().compareTo(o2.getPosition())); return timingInputList; }
Example #2
Source File: RaceAwards.java From pikatimer with GNU General Public License v3.0 | 5 votes |
@ElementCollection(fetch = FetchType.EAGER) @OneToMany(mappedBy="raceAward",cascade={CascadeType.PERSIST, CascadeType.REMOVE},fetch = FetchType.EAGER) @Fetch(FetchMode.SELECT) @OrderColumn(name = "category_priority") public List<AwardCategory> getAwardCategories(){ return awardCategories; }
Example #3
Source File: Race.java From pikatimer with GNU General Public License v3.0 | 5 votes |
@OneToMany(mappedBy="race",cascade={CascadeType.PERSIST, CascadeType.REMOVE},fetch = FetchType.EAGER) @OrderBy("split_seq_number") @Fetch(FetchMode.SELECT) public List<Split> getSplits() { return raceSplitList; //return raceSplits.sorted((Split o1, Split o2) -> o1.getPosition().compareTo(o2.getPosition())); }
Example #4
Source File: JobData.java From scheduling with GNU Affero General Public License v3.0 | 5 votes |
@OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL, orphanRemoval = true, mappedBy = "jobData") @Fetch(FetchMode.SELECT) @BatchSize(size = 10) @MapKey(name = "jobId") @PrimaryKeyJoinColumn(name = "JOB_ID") public List<JobContent> getJobContent() { return jobContent; }
Example #5
Source File: Race.java From pikatimer with GNU General Public License v3.0 | 4 votes |
@OneToMany(mappedBy="race",cascade={CascadeType.PERSIST, CascadeType.REMOVE},fetch = FetchType.EAGER) @Fetch(FetchMode.SELECT) public List<Wave> getWaves() { return raceWavesList; }
Example #6
Source File: Race.java From pikatimer with GNU General Public License v3.0 | 4 votes |
@OneToMany(mappedBy="race",cascade={CascadeType.PERSIST, CascadeType.REMOVE},fetch = FetchType.EAGER) @Fetch(FetchMode.SELECT) public List<RaceReport> getRaceReports() { return raceReportsList; }
Example #7
Source File: RaceReport.java From pikatimer with GNU General Public License v3.0 | 4 votes |
@OneToMany(mappedBy="raceReport",cascade={CascadeType.PERSIST, CascadeType.REMOVE},fetch = FetchType.LAZY) @Fetch(FetchMode.SELECT) public List<RaceOutputTarget> getRaceOutputTargets() { return raceOutputTargetList; }