found cyclic dependency problems in schema and in VorbaId mechanism.
authorjprocter <jprocter@compbio.dundee.ac.uk>
Mon, 16 Jan 2006 20:25:49 +0000 (20:25 +0000)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Mon, 16 Jan 2006 20:25:49 +0000 (20:25 +0000)
git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@139 be28352e-c001-0410-b1a7-c7978e42abec

src/org/vamsas/test/simpleclient/VamsasArchive.java

index df18387..ceae705 100644 (file)
@@ -78,6 +78,10 @@ public class VamsasArchive {
         log.info("Writing an apdata reference using AppDataStream interface.");
         apuser.setAppDataChoice(new AppDataChoice());
         apuser.getAppDataChoice().setDataReference(appdata_ref);
+        appdata.addUser(apuser);
+        // TODO: FIX CYCLIC __ensure+instance_ids
+        // TODO: FIX schema - User.addUser is unsatisfiable!
+        apuser.addUser(apuser);
         ObjectOutputStream apdos = new ObjectOutputStream(va.getAppDataStream(appdata_ref));
         apdos.writeObject(appdata_ref);
         apdos.writeObject(apuser); // some random content