Property pone = ot.getProperty(one.getName().getName()); Property ptwo = ot.getProperty(two.getName().getName());
Role pone = (Role) ot.getProperty(one.getName().getName()); Role ptwo = (Role) ot.getProperty(two.getName().getName());
		public void onAssociation(AssociationNd assn) {		    if (assn.getProperties().size() == 0) {			return;		    }		    PropertyNd one = assn.getRoleOne();		    PropertyNd two = assn.getRoleTwo();		    ObjectType ot = m_symbols.getEmitted(linkName(assn));		    ObjectMap om = m_root.getObjectMap(ot);		    Collection keys = om.getKeyProperties();		    Property pone = ot.getProperty(one.getName().getName());		    Property ptwo = ot.getProperty(two.getName().getName());		    keys.add(ptwo);		    keys.add(pone);		    if (one.getMapping() != null) {			emitMapping(pone, (JoinPathNd) one.getMapping(), 1);		    } else {			om.addMapping(new Static(Path.get(pone.getName())));		    }		    if (two.getMapping() != null) {			emitMapping(ptwo, (JoinPathNd) two.getMapping(), 1);		    } else {			om.addMapping(new Static(Path.get(ptwo.getName())));		    }		    String[] paths = new String[] { pone.getName(),						    ptwo.getName() };		    for (int i = 0; i < paths.length; i++) {			Mapping m = om.getMapping(Path.get(paths[i]));			if (m.getTable() != null) {			    om.setTable(m.getTable());			    break;			}		    }		}