LDEV-4411 Make relation from Evaluation to ToolActivity unidirectional
Hibernate can not lazy load properties connected with OneToOne
relati… Show more
Hibernate can not lazy load properties connected with OneToOne
relati… Show more
LDEV-4411 Make relation from Evaluation to ToolActivity unidirectionalHibernate can not lazy load properties connected with OneToOnerelationship. It means that with every fetch of ToolActivity itsActivityEvaluation was also fetched, whether is was needed or not. Itmade up even 10% of all queries sent to DB during a lesson.By having the relationship unidirectional and fetchingActivityEvaluation via DAO we ensure that it is fetched only when it isneeded. The code is not as nice, though.
Show less
![]() |