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.
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