Optimalizace načítání entit z databáze. OwnedBy a ModifiedBy jsou lazy

loadovány.
multitenant
Josef Rokos 11 years ago
parent 319b79b776
commit d711736132

@ -22,10 +22,10 @@ public abstract class BaseData implements OwnedDataModel {
private Date created; private Date created;
@Column(name="MODIFIED") @Column(name="MODIFIED")
private Date modified; private Date modified;
@ManyToOne(fetch=FetchType.EAGER) @ManyToOne(fetch=FetchType.LAZY)
@JoinColumn(name="OWNED_BY_ID") @JoinColumn(name="OWNED_BY_ID")
private User ownedBy; private User ownedBy;
@ManyToOne(fetch=FetchType.EAGER) @ManyToOne(fetch=FetchType.LAZY)
@JoinColumn(name="MODIFIED_BY_ID") @JoinColumn(name="MODIFIED_BY_ID")
private User modifiedBy; private User modifiedBy;
@Transient @Transient

Loading…
Cancel
Save