Are generated classes ever instantiated via new? If not, SerialVersionUID does not serve any useful purpose, it's the programmer-written subclass that gets asked for the SerialVersionUID. In that case, it may help to declare the generated classes abstract. Abstract classes cannot be deserialized, so the compiler should not complain.
An aside note: Adding @SuppressWarnings might not be the best way to go, most warning names are not standardized and hence differ between compilers. I'm not sure whether "serial" is a standardized warning. I think it isn't but don't know the reference doc to use for checking. Regards, Jo