XMLDirectMapping cascadeAllMapping = new XMLDirectMapping();
cascadeAllMapping.setAttributeName("m_cascadeAll");
cascadeAllMapping.setGetMethodName("getCascadeAll");
cascadeAllMapping.setSetMethodName("setCascadeAll");
IsSetNullPolicy cascadeAllPolicy = new IsSetNullPolicy("isCascadeAll");
cascadeAllPolicy.setMarshalNullRepresentation(XMLNullRepresentationType.EMPTY_NODE);
cascadeAllMapping.setNullPolicy(cascadeAllPolicy);
cascadeAllMapping.setXPath("orm:cascade-all");
descriptor.addMapping(cascadeAllMapping);
XMLDirectMapping cascadePersistMapping = new XMLDirectMapping();
cascadePersistMapping.setAttributeName("m_cascadePersist");
cascadePersistMapping.setGetMethodName("getCascadePersist");
cascadePersistMapping.setSetMethodName("setCascadePersist");
IsSetNullPolicy cascadePersistPolicy = new IsSetNullPolicy("isCascadePersist");
cascadePersistPolicy.setMarshalNullRepresentation(XMLNullRepresentationType.EMPTY_NODE);
cascadePersistMapping.setNullPolicy(cascadePersistPolicy);
cascadePersistMapping.setXPath("orm:cascade-persist");
descriptor.addMapping(cascadePersistMapping);
XMLDirectMapping cascadeMergeMapping = new XMLDirectMapping();
cascadeMergeMapping.setAttributeName("m_cascadeMerge");
cascadeMergeMapping.setGetMethodName("getCascadeMerge");
cascadeMergeMapping.setSetMethodName("setCascadeMerge");
IsSetNullPolicy cascadeMergePolicy = new IsSetNullPolicy("isCascadeMerge");
cascadeMergePolicy.setMarshalNullRepresentation(XMLNullRepresentationType.EMPTY_NODE);
cascadeMergeMapping.setNullPolicy(cascadeMergePolicy);
cascadeMergeMapping.setXPath("orm:cascade-merge");
descriptor.addMapping(cascadeMergeMapping);
XMLDirectMapping cascadeRemoveMapping = new XMLDirectMapping();
cascadeRemoveMapping.setAttributeName("m_cascadeRemove");
cascadeRemoveMapping.setGetMethodName("getCascadeRemove");
cascadeRemoveMapping.setSetMethodName("setCascadeRemove");
IsSetNullPolicy cascadeRemovePolicy = new IsSetNullPolicy("isCascadeRemove");
cascadeRemovePolicy.setMarshalNullRepresentation(XMLNullRepresentationType.EMPTY_NODE);
cascadeRemoveMapping.setNullPolicy(cascadeRemovePolicy);
cascadeRemoveMapping.setXPath("orm:cascade-remove");
descriptor.addMapping(cascadeRemoveMapping);
XMLDirectMapping cascadeRefreshMapping = new XMLDirectMapping();
cascadeRefreshMapping.setAttributeName("m_cascadeRefresh");
cascadeRefreshMapping.setGetMethodName("getCascadeRefresh");
cascadeRefreshMapping.setSetMethodName("setCascadeRefresh");
IsSetNullPolicy cascadeRefreshPolicy = new IsSetNullPolicy("isCascadeRefresh");
cascadeRefreshPolicy.setMarshalNullRepresentation(XMLNullRepresentationType.EMPTY_NODE);
cascadeRefreshMapping.setNullPolicy(cascadeRefreshPolicy);
cascadeRefreshMapping.setXPath("orm:cascade-refresh");
descriptor.addMapping(cascadeRefreshMapping);
return descriptor;