descriptor.addMapping(getDescriptionMapping());
descriptor.addMapping(getCustomizerMapping());
descriptor.addMapping(getChangeTrackingMapping());
XMLCompositeObjectMapping tableMapping = new XMLCompositeObjectMapping();
tableMapping.setAttributeName("m_table");
tableMapping.setGetMethodName("getTable");
tableMapping.setSetMethodName("setTable");
tableMapping.setReferenceClass(TableMetadata.class);
tableMapping.setXPath("orm:table");
descriptor.addMapping(tableMapping);
XMLCompositeCollectionMapping secondaryTablesMapping = new XMLCompositeCollectionMapping();
secondaryTablesMapping.setAttributeName("m_secondaryTables");
secondaryTablesMapping.setGetMethodName("getSecondaryTables");
secondaryTablesMapping.setSetMethodName("setSecondaryTables");
secondaryTablesMapping.setReferenceClass(SecondaryTableMetadata.class);
secondaryTablesMapping.setXPath("orm:secondary-table");
descriptor.addMapping(secondaryTablesMapping);
descriptor.addMapping(getPrimaryKeyJoinColumnMapping());
descriptor.addMapping(getIdClassMapping());
descriptor.addMapping(getPrimaryKeyMapping());
XMLCompositeObjectMapping inheritanceMapping = new XMLCompositeObjectMapping();
inheritanceMapping.setAttributeName("m_inheritance");
inheritanceMapping.setGetMethodName("getInheritance");
inheritanceMapping.setSetMethodName("setInheritance");
inheritanceMapping.setReferenceClass(InheritanceMetadata.class);
inheritanceMapping.setXPath("orm:inheritance");
descriptor.addMapping(inheritanceMapping);
XMLDirectMapping discriminatorValueMapping = new XMLDirectMapping();
discriminatorValueMapping.setAttributeName("m_discriminatorValue");
discriminatorValueMapping.setGetMethodName("getDiscriminatorValue");