update CURRICULUM_MODULE set CURRICULUM_MODULE.OJB_CONCRETE_CLASS = 'net.sourceforge.fenixedu.domain.studentCurriculum.RootCurriculumGroup' where CURRICULUM_MODULE.OJB_CONCRETE_CLASS = 'net.sourceforge.fenixedu.domain.studentCurriculum.CurriculumGroup' and CURRICULUM_MODULE.KEY_CURRICULUM_GROUP is null;
update CURRICULUM_MODULE set CURRICULUM_MODULE.OJB_CONCRETE_CLASS = 'net.sourceforge.fenixedu.domain.studentCurriculum.CycleCurriculumGroup' where CURRICULUM_MODULE.OJB_CONCRETE_CLASS = 'net.sourceforge.fenixedu.domain.studentCurriculum.CurriculumGroup' and CURRICULUM_MODULE.KEY_DEGREE_MODULE in (select DEGREE_MODULE.ID_INTERNAL from DEGREE_MODULE where DEGREE_MODULE.NAME like '%Ciclo' and DEGREE_MODULE.OJB_CONCRETE_CLASS = 'net.sourceforge.fenixedu.domain.degreeStructure.CourseGroup');
