Advanced Customization > Services and Infrastructure Customization > Evolvable Classes > Examples of Generated Externalization Code for Evolvable Classes > Example of a writeExternal Method
  
Example of a writeExternal Method
public void writeExternal( ObjectOutput output )
throws IOException {

//##begin writeExternal%writeExternal.body preserve=no
output.writeLong( EXTERNALIZATION_VERSION_UID );
super.writeExternal( output );
output.writeObject( a1 );
output.writeObject( a2 );
output.writeObject( a3 );
output.writeObject( list );
output.writeObject( (size == null ? null :
size.getStringValue()) );
output.writeObject( theOneMoreReference );
output.writeObject( timeline );
output.writeObject( work );

//##end writeExternal%writeExternal.body
}