@@ -0,0 +1,2319 @@
+package org.ovirt.engine.core.common.businessentities;%0A%0Aimport java.util.Date;%0A%0Aimport org.ovirt.engine.core.compat.Guid;%0A%0Aimport com.google.gwt.user.client.rpc.SerializationException;%0Aimport com.google.gwt.user.client.rpc.SerializationStreamReader;%0Aimport com.google.gwt.user.client.rpc.SerializationStreamWriter;%0A%0A/**%0A * We need this custom field serializer for %7B@link RepoImage%7D because otherwise%0A * the GWT compiler will optimize out some of the fields of the entity and that%0A * causes exceptions in the standard deserialization mechanism in the server%0A * side.%0A */%0Apublic class RepoImage_CustomFieldSerializer %7B%0A%0A    public static RepoImage instantiate(SerializationStreamReader reader) throws SerializationException %7B%0A        return new RepoImage();%0A    %7D%0A%0A    public static void serialize(SerializationStreamWriter writer, RepoImage instance) throws SerializationException %7B%0A        writer.writeObject(instance.getStoragePoolId());%0A        writer.writeObject(instance.getStoragePoolStatus());%0A        writer.writeObject(instance.getVdsStatus());%0A        writer.writeObject(instance.getRepoDomainId());%0A        writer.writeObject(instance.getStorageDomainStatus());%0A        writer.writeString(instance.getRepoImageId());%0A        writer.writeString(instance.getRepoImageName());%0A        writer.writeLong(instance.getSize());%0A        writer.writeObject(instance.getDateCreated());%0A        writer.writeLong(instance.getLastRefreshed());%0A        writer.writeObject(instance.getFileType());%0A    %7D%0A%0A    public static void deserialize(SerializationStreamReader reader, RepoImage instance) throws SerializationException %7B%0A        instance.setStoragePoolId((Guid) reader.readObject());%0A        instance.setStoragePoolStatus((StoragePoolStatus) reader.readObject());%0A        instance.setVdsStatus((VDSStatus) reader.readObject());%0A        instance.setRepoDomainId((Guid) reader.readObject());%0A        instance.setStorageDomainStatus((StorageDomainStatus) reader.readObject());%0A        instance.setRepoImageId(reader.readString());%0A        instance.setRepoImageName(reader.readString());%0A        instance.setSize(reader.readLong());%0A        instance.setDateCreated((Date) reader.readObject());%0A        instance.setLastRefreshed(reader.readLong());%0A        instance.setFileType((ImageFileType) reader.readObject());%0A    %7D%0A%0A%7D%0A

Add custom field serializer for RepoImage