UPDATE ROOT_DOMAIN_OBJECT
   SET KEY_EARTH_UNIT = (SELECT ID_INTERNAL FROM PARTY WHERE ACRONYM = 'WRLD' AND OJB_CONCRETE_CLASS = 'net.sourceforge.fenixedu.domain.organizationalStructure.PlanetUnit')
 WHERE ID_INTERNAL = 1;

UPDATE ROOT_DOMAIN_OBJECT
   SET KEY_INSTITUTION_UNIT = (SELECT ID_INTERNAL FROM PARTY WHERE ACRONYM = 'ISCTE' AND OJB_CONCRETE_CLASS = 'net.sourceforge.fenixedu.domain.organizationalStructure.UniversityUnit')
 WHERE ID_INTERNAL = 1;