Skip to content

Commit

Permalink
Fixed fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
oblodgett committed Jan 8, 2024
1 parent f8a6218 commit 4121f27
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ public class AGMDiseaseAnnotation extends DiseaseAnnotation {
@IndexedEmbedded(includeDepth = 2)
@IndexingDependency(reindexOnUpdate = ReindexOnUpdate.SHALLOW)
@ManyToOne
@Fetch(FetchMode.SELECT)
@org.hibernate.annotations.OnDelete(action = org.hibernate.annotations.OnDeleteAction.CASCADE)
@JoinColumn(foreignKey = @ForeignKey(name = "fk_agmdasubject"))
@JsonView({ View.FieldsOnly.class, View.ForPublic.class })
Expand All @@ -54,29 +53,25 @@ public class AGMDiseaseAnnotation extends DiseaseAnnotation {
@IndexedEmbedded(includeDepth = 2)
@IndexingDependency(reindexOnUpdate = ReindexOnUpdate.SHALLOW)
@ManyToOne
@Fetch(FetchMode.SELECT)
@JsonView({ View.FieldsOnly.class, View.ForPublic.class })
private Gene inferredGene;

@IndexedEmbedded(includeDepth = 2)
@IndexingDependency(reindexOnUpdate = ReindexOnUpdate.SHALLOW)
@ManyToOne
@Fetch(FetchMode.SELECT)
@JsonView({ View.FieldsOnly.class, View.ForPublic.class })
private Allele inferredAllele;

@IndexedEmbedded(includeDepth = 2)
@IndexingDependency(reindexOnUpdate = ReindexOnUpdate.SHALLOW)
@ManyToMany
@Fetch(FetchMode.SELECT)
@JoinTable(indexes = @Index(columnList = "agmdiseaseannotation_id"))
@JsonView({ View.FieldsAndLists.class, View.DiseaseAnnotation.class, View.ForPublic.class })
private List<Gene> assertedGenes;

@IndexedEmbedded(includeDepth = 2)
@IndexingDependency(reindexOnUpdate = ReindexOnUpdate.SHALLOW)
@ManyToOne
@Fetch(FetchMode.SELECT)
@JsonView({ View.FieldsOnly.class, View.ForPublic.class })
private Allele assertedAllele;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ public class AlleleDiseaseAnnotation extends DiseaseAnnotation {
@IndexedEmbedded(includeDepth = 2)
@IndexingDependency(reindexOnUpdate = ReindexOnUpdate.SHALLOW)
@ManyToOne
@Fetch(FetchMode.SELECT)
@org.hibernate.annotations.OnDelete(action = org.hibernate.annotations.OnDeleteAction.CASCADE)
@JoinColumn(foreignKey = @ForeignKey(name = "fk_alleledasubject"))
@JsonView({ View.FieldsOnly.class, View.ForPublic.class })
Expand All @@ -56,14 +55,12 @@ public class AlleleDiseaseAnnotation extends DiseaseAnnotation {
@IndexedEmbedded(includeDepth = 2)
@IndexingDependency(reindexOnUpdate = ReindexOnUpdate.SHALLOW)
@ManyToOne
@Fetch(FetchMode.SELECT)
@JsonView({ View.FieldsOnly.class, View.ForPublic.class })
private Gene inferredGene;

@IndexedEmbedded(includeDepth = 2)
@IndexingDependency(reindexOnUpdate = ReindexOnUpdate.SHALLOW)
@ManyToMany
@Fetch(FetchMode.SELECT)
@JoinTable(indexes = { @Index(columnList = "allelediseaseannotation_id"), @Index(columnList = "assertedgenes_curie")})
@JsonView({ View.FieldsAndLists.class, View.DiseaseAnnotation.class, View.ForPublic.class })
private List<Gene> assertedGenes;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ public class Annotation extends SingleReferenceAssociation {
@IndexedEmbedded(includeDepth = 2)
@IndexingDependency(reindexOnUpdate = ReindexOnUpdate.SHALLOW)
@ManyToOne
@Fetch(FetchMode.SELECT)
@JsonView({ View.FieldsOnly.class, View.ForPublic.class })
protected DataProvider dataProvider;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ public class CrossReference extends GeneratedAuditedObject {
@IndexedEmbedded(includeDepth = 1)
@IndexingDependency(reindexOnUpdate = ReindexOnUpdate.SHALLOW)
@ManyToOne
@Fetch(FetchMode.SELECT)
@JsonView({ View.FieldsOnly.class, View.ForPublic.class })
private ResourceDescriptorPage resourceDescriptorPage;

Expand Down

0 comments on commit 4121f27

Please sign in to comment.