entityResultsMapping.setAttributeName("m_entityResults");
entityResultsMapping.setGetMethodName("getEntityResults");
entityResultsMapping.setSetMethodName("setEntityResults");
entityResultsMapping.setReferenceClass(EntityResultMetadata.class);
entityResultsMapping.setXPath("orm:entity-result");
descriptor.addMapping(entityResultsMapping);
XMLCompositeDirectCollectionMapping columnResultsMapping = new XMLCompositeDirectCollectionMapping();
columnResultsMapping.setAttributeName("m_columnResults");
columnResultsMapping.setGetMethodName("getColumnResults");
columnResultsMapping.setSetMethodName("setColumnResults");