XMLDirectMapping discriminatorTypeMapping = new XMLDirectMapping();
discriminatorTypeMapping.setAttributeName("m_discriminatorType");
discriminatorTypeMapping.setGetMethodName("getDiscriminatorType");
discriminatorTypeMapping.setSetMethodName("setDiscriminatorType");
discriminatorTypeMapping.setConverter(new EnumTypeConverter(discriminatorTypeMapping, DiscriminatorType.class, false));
discriminatorTypeMapping.setXPath("@discriminator-type");
descriptor.addMapping(discriminatorTypeMapping);
descriptor.addMapping(getColumnDefinitionAttributeMapping());
descriptor.addMapping(getLengthAttributeMapping());