Program: 63283
Project: 63283
Buggy source:
public ClassDescriptor buildWrappedSpatialDescriptor(){
  RelationalDescriptor descriptor=new RelationalDescriptor();
  descriptor.setJavaClass(org.eclipse.persistence.testing.models.spatial.jgeometry.wrapped.WrappedSpatial.class);
  descriptor.addTableName("String_Node_Str");
  descriptor.addPrimaryKeyFieldName("String_Node_Str");
  descriptor.useSoftCacheWeakIdentityMap();
  descriptor.setIdentityMapSize(100);
  descriptor.useRemoteSoftCacheWeakIdentityMap();
  descriptor.setRemoteIdentityMapSize(100);
  descriptor.setAlias("String_Node_Str");
  descriptor.setAmendmentClass(org.eclipse.persistence.testing.models.spatial.jgeometry.wrapped.TopLinkAfterLoad.class);
  descriptor.setAmendmentMethodName("String_Node_Str");
  descriptor.getQueryManager().checkCacheForDoesExist();
  ReadAllQuery namedQuery0=new ReadAllQuery(org.eclipse.persistence.testing.models.spatial.jgeometry.wrapped.WrappedSpatial.class);
  namedQuery0.setName("String_Node_Str");
  namedQuery0.setQueryTimeout(0);
  namedQuery0.setCacheUsage(ObjectLevelReadQuery.CheckCacheByPrimaryKey);
  namedQuery0.setLockMode(ObjectLevelReadQuery.NO_LOCK);
  descriptor.getQueryManager().addQuery("String_Node_Str",namedQuery0);
  descriptor.addDirectQueryKey("String_Node_Str","String_Node_Str");
  descriptor.addDirectQueryKey("String_Node_Str","String_Node_Str");
  DirectToFieldMapping idMapping=new DirectToFieldMapping();
  idMapping.setAttributeName("String_Node_Str");
  idMapping.setFieldName("String_Node_Str");
  descriptor.addMapping(idMapping);
  DirectToFieldMapping geometryMapping=new DirectToFieldMapping();
  geometryMapping.setAttributeName("String_Node_Str");
  geometryMapping.setFieldName("String_Node_Str");
  geometryMapping.setFieldType(java.sql.Types.STRUCT);
  descriptor.addMapping(geometryMapping);
  descriptor.applyAmendmentMethod();
  return descriptor;
}

Fixed version (ground truth):
public ClassDescriptor buildWrappedSpatialDescriptor(){
  RelationalDescriptor descriptor=new RelationalDescriptor();
  descriptor.setJavaClass(org.eclipse.persistence.testing.models.spatial.jgeometry.wrapped.WrappedSpatial.class);
  descriptor.addTableName("String_Node_Str");
  descriptor.addPrimaryKeyFieldName("String_Node_Str");
  descriptor.useSoftCacheWeakIdentityMap();
  descriptor.setIdentityMapSize(100);
  descriptor.useRemoteSoftCacheWeakIdentityMap();
  descriptor.setRemoteIdentityMapSize(100);
  descriptor.setAlias("String_Node_Str");
  descriptor.setAmendmentClass(org.eclipse.persistence.testing.models.spatial.jgeometry.wrapped.TopLinkAfterLoad.class);
  descriptor.setAmendmentMethodName("String_Node_Str");
  descriptor.getQueryManager().checkCacheForDoesExist();
  ReadAllQuery namedQuery0=new ReadAllQuery(org.eclipse.persistence.testing.models.spatial.jgeometry.wrapped.WrappedSpatial.class);
  namedQuery0.setName("String_Node_Str");
  namedQuery0.setQueryTimeout(0);
  namedQuery0.setCacheUsage(ObjectLevelReadQuery.CheckCacheByPrimaryKey);
  namedQuery0.setLockMode(ObjectLevelReadQuery.NO_LOCK);
  descriptor.getQueryManager().addQuery("String_Node_Str",namedQuery0);
  descriptor.addDirectQueryKey("String_Node_Str","String_Node_Str");
  descriptor.addDirectQueryKey("String_Node_Str","String_Node_Str");
  DirectToFieldMapping idMapping=new DirectToFieldMapping();
  idMapping.setAttributeName("String_Node_Str");
  idMapping.setFieldName("String_Node_Str");
  descriptor.addMapping(idMapping);
  DirectToFieldMapping geometryMapping=new DirectToFieldMapping();
  geometryMapping.setAttributeName("String_Node_Str");
  ObjectRelationalDatabaseField f=new ObjectRelationalDatabaseField("String_Node_Str");
  geometryMapping.setField(f);
  geometryMapping.setFieldType(java.sql.Types.STRUCT);
  descriptor.addMapping(geometryMapping);
  descriptor.applyAmendmentMethod();
  return descriptor;
}