made serializable
[vamsas.git] / src / uk / ac / vamsas / client / VorbaId.java
index 4ba6c0b..fd6d6de 100644 (file)
@@ -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();