OVT-8448: Changed the Hibernate flushmode to COMMIT to improve performance.
OVT-8448: Fixed relation save test and dao test for flushmode
OVT-8448: Added flushing to koodistoDAO and koodistoVersioDAO. Refactored KoodinSuhdeDAO. Fixed saveKoodi for relation changes (first remove parent relations, after that update this codeElement). This will probably break when codeElements belong to same codes.
KH-223: Checkbox for showing passive relations

Passive relations are shown with grey background. By default passive
relations are hidden.
KH-223: Checkbox for showing passive codes relations
OVT-8661: Added flush to KoodistonSuhdeDAO, small refactoring to KoodiVersioDAO.
OVT-8661: Adding codeelement relation to same codes fails. Added tests savesCodeElementWithNameAndRelationsToSameCodesChanges and savedRelationBetweenCodeElementsInSameCodes. Added flushing and reordered save operations to avoid optimistic locking exception..
OVT-8661: Refactoring.
Merge branch 'develop' of https://github.com/Opetushallitus/koodisto into develop
KH-219:  Relations to passive when pacifying code

Sets relations to passive when code element is set to passive
Merge branch 'develop' of https://github.com/Opetushallitus/koodisto into develop
Undo accidental dao-context.xml change.
OVT-8464: Fixed scands and missing error.
Merge branch 'develop' of https://github.com/Opetushallitus/koodisto into develop
KH-219: Relations to passive when codes is pacified

Sets relations to passive when codes is set to passive.
Merge branch 'develop' of https://github.com/Opetushallitus/koodisto into develop
KH-214: Activate relations when removing

Activates relations in previous version when the latest passive code
element version is removed.
Fixed filtering passive codeelement relations.
KH-214: Activate codes relations on delete

When deleting latest codes version relations in earlier version of codes
is switched to active.
Merge branch 'develop' of https://github.com/Opetushallitus/koodisto into develop