Skip to content
Snippets Groups Projects
Commit 88e1912a authored by buczekp's avatar buczekp
Browse files

[LMS-1508] changed fetch type of registrator (gives huge performance...

[LMS-1508] changed fetch type of registrator (gives huge performance improvement of loading properties, attachments, ...)

SVN: 15703
parent 4ab4824d
No related branches found
No related tags found
No related merge requests found
...@@ -90,7 +90,7 @@ public abstract class HibernateAbstractRegistrationHolder implements Serializabl ...@@ -90,7 +90,7 @@ public abstract class HibernateAbstractRegistrationHolder implements Serializabl
this.registrationDate = registrationDate; this.registrationDate = registrationDate;
} }
@ManyToOne(fetch = FetchType.EAGER) @ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = ColumnNames.PERSON_REGISTERER_COLUMN, updatable = false) @JoinColumn(name = ColumnNames.PERSON_REGISTERER_COLUMN, updatable = false)
public PersonPE getRegistrator() public PersonPE getRegistrator()
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment