spaceDimension.loadObject(connection);
episodeFacts.loadObject(connection);
//define the space dimension
Level environmentLvl = new MondrianLevel("Environment",spaceDimension,"environment_name");
LevelProperty envNameProp = new MondrianLevelProperty( "Environment Name",
LevelProperty.TYPE_STRING,
spaceDimension,
"environment_name");
environmentLvl.addProperty(envNameProp);
LevelProperty envGeomProp = new MondrianLevelProperty( "geom",
LevelProperty.TYPE_GEOMETRY,
spaceDimension,
"environment_geom");
environmentLvl.addProperty(envGeomProp);
Level regionLvl = new MondrianLevel("Region",spaceDimension,"region_name");
LevelProperty regNameProp = new MondrianLevelProperty( "Region Name",
LevelProperty.TYPE_STRING,
spaceDimension,
"region_name");
regionLvl.addProperty(regNameProp);
LevelProperty regGeomProp = new MondrianLevelProperty( "geom",
LevelProperty.TYPE_GEOMETRY,
spaceDimension,
"region_geom");
regionLvl.addProperty(regGeomProp);
Level areaLvl = new MondrianLevel("Area",spaceDimension,"area_name");
LevelProperty areaNameProp = new MondrianLevelProperty( "Area Name",
LevelProperty.TYPE_STRING,
spaceDimension,
"area_name");
areaLvl.addProperty(areaNameProp);
LevelProperty areaGeomProp = new MondrianLevelProperty( "geom",
LevelProperty.TYPE_GEOMETRY,
spaceDimension,
"area_geom");
areaLvl.addProperty(areaGeomProp);
Hierarchy spaceHier = new MondrianHierarchy("spaceHier",spaceDimension);
spaceHier.addLevel(environmentLvl);
spaceHier.addLevel(regionLvl);
spaceHier.addLevel(areaLvl);