Skip to content

Commit

Permalink
fix for warn from new version of hibernate because of HHH-12770
Browse files Browse the repository at this point in the history
  • Loading branch information
skublik committed Jun 11, 2021
1 parent 33b54b9 commit ff73421
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ public String getOwnerOid() {
return ownerOid;
}

@ManyToOne(fetch = FetchType.LAZY, targetEntity = RObject.class)
// commented because of The NotFoundAction.IGNORE @ManyToOne and @OneToOne associations are always fetched eagerly. (HHH-12770)
@ManyToOne(targetEntity = RObject.class)//, fetch = FetchType.LAZY)
@JoinColumn(referencedColumnName = "oid", updatable = false, insertable = false,
foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT))
@NotFound(action = NotFoundAction.IGNORE)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ public Integer getOwnerId() {
}

@ForeignKey(name = "none")
@ManyToOne(fetch = FetchType.LAZY)
// commented because of The NotFoundAction.IGNORE @ManyToOne and @OneToOne associations are always fetched eagerly. (HHH-12770)
@ManyToOne//(fetch = FetchType.LAZY)
@JoinColumn(referencedColumnName = "oid", updatable = false, insertable = false)
@NotFound(action = NotFoundAction.IGNORE)
@NotQueryable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ public void setOwnerId(Integer ownerId) {
}

@ForeignKey(name = "none")
@ManyToOne(fetch = FetchType.LAZY)
// commented because of The NotFoundAction.IGNORE @ManyToOne and @OneToOne associations are always fetched eagerly. (HHH-12770)
@ManyToOne//(fetch = FetchType.LAZY)
@JoinColumn(referencedColumnName = "oid", updatable = false, insertable = false)
@NotFound(action = NotFoundAction.IGNORE)
@NotQueryable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ public void setOwnerId(Integer ownerId) {
}

@ForeignKey(name = "none")
@ManyToOne(fetch = FetchType.LAZY)
// commented because of The NotFoundAction.IGNORE @ManyToOne and @OneToOne associations are always fetched eagerly. (HHH-12770)
@ManyToOne//(fetch = FetchType.LAZY)
@JoinColumn(referencedColumnName = "oid", updatable = false, insertable = false)
@NotFound(action = NotFoundAction.IGNORE)
@NotQueryable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ public class REmbeddedReference implements ObjectReference {
public String getRelation() {
return relation;
}

@ManyToOne(fetch = FetchType.LAZY)
// commented because of The NotFoundAction.IGNORE @ManyToOne and @OneToOne associations are always fetched eagerly. (HHH-12770)
@ManyToOne//(fetch = FetchType.LAZY)
@JoinColumn(referencedColumnName = "oid", updatable = false, insertable = false,
foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT))
@NotFound(action = NotFoundAction.IGNORE)
Expand Down

0 comments on commit ff73421

Please sign in to comment.