From: jprocter Date: Tue, 4 Sep 2007 14:39:59 +0000 (+0000) Subject: made serializable X-Git-Tag: Release_0.2~65 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=33accd9f665615327e79e68b205f26b9567fa8be;p=vamsas.git made serializable git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@455 be28352e-c001-0410-b1a7-c7978e42abec --- diff --git a/src/uk/ac/vamsas/client/VorbaId.java b/src/uk/ac/vamsas/client/VorbaId.java index 4ba6c0b..fd6d6de 100644 --- a/src/uk/ac/vamsas/client/VorbaId.java +++ b/src/uk/ac/vamsas/client/VorbaId.java @@ -6,17 +6,21 @@ */ package uk.ac.vamsas.client; +import java.io.Serializable; + /** * The unique reference id for a Vamsas document Vobject, * used by applications to refer to the vamsas Vobject * within their own data space in the vamsas document. - * TODO: decide if VorbaId should contain a reference - * to either the IVorbaIdFactory that made it or the - * IClient that defines the session (it might be - * convenient). + * This is serializable (thanks to Dominik Lindner) so an + * application can store it easily. * @author jimp */ -public class VorbaId { +public class VorbaId implements Serializable { + /** + * 1 is first vamsas release ID version. + */ + private static final long serialVersionUID = 1L; protected String id; protected VorbaId() { super();