Below is the summary of the experiment. After the changes below all unit tests run successfully in all csf components.
- For compilation:
- One line in HibernateEvaluationResponseDao.java and in HibernateEvaluationSubjectGroupDao.java has to be changed from:
and must be changed to
new DistinctRootEntityResultTransformer()
DistinctRootEntityResultTransformer.INSTANCE
- One line in HibernateEvaluationResponseDao.java and in HibernateEvaluationSubjectGroupDao.java has to be changed from:
- For running unit tests:
- The following dependency had to be added to the pom file.
<dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-ehcache</artifactId> <version>3.5.6.Final</version> </dependency>
- The id sequence generator no longer supports the type String. As a result, the domain object NonSubjectAcademicCredit must extend AbstractDomainLongIdBase instead of AbstractDomainStringIdBase.
Also, the hbm mapping should be updated accordingly. (Note: The type in the database is NUMBER, so it should have been Long from the beginning!!) - Workflow complained about missing classes so the following had to be added to the pom file (Note: it really should be added to the workflow pom file and not common-legacy)
<dependency> <groupId>javassist</groupId> <artifactId>javassist</artifactId> <version>3.12.1.GA</version> </dependency>
- The following dependency had to be added to the pom file.