typeMapping.setAttributeName("m_type");
typeMapping.setGetMethodName("getType");
typeMapping.setSetMethodName("setType");
typeMapping.setConverter(new EnumTypeConverter(typeMapping, OptimisticLockingType.class, false));
typeMapping.setXPath("@type");
descriptor.addMapping(typeMapping);
XMLDirectMapping cascadeMapping = new XMLDirectMapping();
cascadeMapping.setAttributeName("m_cascade");
cascadeMapping.setGetMethodName("getCascade");
cascadeMapping.setSetMethodName("setCascade");