embeddedIdMapping.setSetMethodName("setEmbeddedId");
embeddedIdMapping.setReferenceClass(EmbeddedIdAccessor.class);
embeddedIdMapping.setXPath("orm:embedded-id");
descriptor.addMapping(embeddedIdMapping);
XMLCompositeCollectionMapping idsMapping = new XMLCompositeCollectionMapping();
idsMapping.setAttributeName("m_ids");
idsMapping.setGetMethodName("getIds");
idsMapping.setSetMethodName("setIds");
idsMapping.setReferenceClass(IdAccessor.class);
idsMapping.setXPath("orm:id");
descriptor.addMapping(idsMapping);
XMLCompositeCollectionMapping basicsMapping = new XMLCompositeCollectionMapping();
basicsMapping.setAttributeName("m_basics");
basicsMapping.setGetMethodName("getBasics");
basicsMapping.setSetMethodName("setBasics");
basicsMapping.setReferenceClass(BasicAccessor.class);
basicsMapping.setXPath("orm:basic");
descriptor.addMapping(basicsMapping);
XMLCompositeCollectionMapping basicCollectionsMapping = new XMLCompositeCollectionMapping();
basicCollectionsMapping.setAttributeName("m_basicCollections");
basicCollectionsMapping.setGetMethodName("getBasicCollections");
basicCollectionsMapping.setSetMethodName("setBasicCollections");
basicCollectionsMapping.setReferenceClass(BasicCollectionAccessor.class);
basicCollectionsMapping.setXPath("orm:basic-collection");
descriptor.addMapping(basicCollectionsMapping);
XMLCompositeCollectionMapping basicMapsMapping = new XMLCompositeCollectionMapping();
basicMapsMapping.setAttributeName("m_basicMaps");
basicMapsMapping.setGetMethodName("getBasicMaps");
basicMapsMapping.setSetMethodName("setBasicMaps");
basicMapsMapping.setReferenceClass(BasicMapAccessor.class);
basicMapsMapping.setXPath("orm:basic-map");
descriptor.addMapping(basicMapsMapping);
XMLCompositeCollectionMapping versionsMapping = new XMLCompositeCollectionMapping();
versionsMapping.setAttributeName("m_versions");
versionsMapping.setGetMethodName("getVersions");
versionsMapping.setSetMethodName("setVersions");
versionsMapping.setReferenceClass(VersionAccessor.class);
versionsMapping.setXPath("orm:version");
descriptor.addMapping(versionsMapping);
XMLCompositeCollectionMapping manyToOnesMapping = new XMLCompositeCollectionMapping();
manyToOnesMapping.setAttributeName("m_manyToOnes");
manyToOnesMapping.setGetMethodName("getManyToOnes");
manyToOnesMapping.setSetMethodName("setManyToOnes");
manyToOnesMapping.setReferenceClass(ManyToOneAccessor.class);
manyToOnesMapping.setXPath("orm:many-to-one");
descriptor.addMapping(manyToOnesMapping);
XMLCompositeCollectionMapping oneToManysMapping = new XMLCompositeCollectionMapping();
oneToManysMapping.setAttributeName("m_oneToManys");
oneToManysMapping.setGetMethodName("getOneToManys");
oneToManysMapping.setSetMethodName("setOneToManys");
oneToManysMapping.setReferenceClass(OneToManyAccessor.class);
oneToManysMapping.setXPath("orm:one-to-many");
descriptor.addMapping(oneToManysMapping);
XMLCompositeCollectionMapping oneToOnesMapping = new XMLCompositeCollectionMapping();
oneToOnesMapping.setAttributeName("m_oneToOnes");
oneToOnesMapping.setGetMethodName("getOneToOnes");
oneToOnesMapping.setSetMethodName("setOneToOnes");
oneToOnesMapping.setReferenceClass(OneToOneAccessor.class);
oneToOnesMapping.setXPath("orm:one-to-one");
descriptor.addMapping(oneToOnesMapping);
XMLCompositeCollectionMapping variableOneToOnesMapping = new XMLCompositeCollectionMapping();
variableOneToOnesMapping.setAttributeName("m_variableOneToOnes");
variableOneToOnesMapping.setGetMethodName("getVariableOneToOnes");
variableOneToOnesMapping.setSetMethodName("setVariableOneToOnes");
variableOneToOnesMapping.setReferenceClass(VariableOneToOneAccessor.class);
variableOneToOnesMapping.setXPath("orm:variable-one-to-one");
descriptor.addMapping(variableOneToOnesMapping);
XMLCompositeCollectionMapping manyToManysMapping = new XMLCompositeCollectionMapping();
manyToManysMapping.setAttributeName("m_manyToManys");
manyToManysMapping.setGetMethodName("getManyToManys");
manyToManysMapping.setSetMethodName("setManyToManys");
manyToManysMapping.setReferenceClass(ManyToManyAccessor.class);
manyToManysMapping.setXPath("orm:many-to-many");
descriptor.addMapping(manyToManysMapping);
XMLCompositeCollectionMapping embeddedsMapping = new XMLCompositeCollectionMapping();
embeddedsMapping.setAttributeName("m_embeddeds");
embeddedsMapping.setGetMethodName("getEmbeddeds");
embeddedsMapping.setSetMethodName("setEmbeddeds");
embeddedsMapping.setReferenceClass(EmbeddedAccessor.class);
embeddedsMapping.setXPath("orm:embedded");
descriptor.addMapping(embeddedsMapping);
XMLCompositeCollectionMapping transformationsMapping = new XMLCompositeCollectionMapping();
transformationsMapping.setAttributeName("m_transformations");
transformationsMapping.setGetMethodName("getTransformations");
transformationsMapping.setSetMethodName("setTransformations");
transformationsMapping.setReferenceClass(TransformationAccessor.class);
transformationsMapping.setXPath("orm:transformation");
descriptor.addMapping(transformationsMapping);
XMLCompositeCollectionMapping transientsMapping = new XMLCompositeCollectionMapping();
transientsMapping.setAttributeName("m_transients");
transientsMapping.setGetMethodName("getTransients");
transientsMapping.setSetMethodName("setTransients");
transientsMapping.setReferenceClass(TransientAccessor.class);
transientsMapping.setXPath("orm:transient");
descriptor.addMapping(transientsMapping);
return descriptor;
}