From 33accd9f665615327e79e68b205f26b9567fa8be Mon Sep 17 00:00:00 2001 From: jprocter Date: Tue, 4 Sep 2007 14:39:59 +0000 Subject: [PATCH] made serializable git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@455 be28352e-c001-0410-b1a7-c7978e42abec --- src/uk/ac/vamsas/client/VorbaId.java | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) 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(); -- 1.7.10.2