X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Forg%2Fvamsas%2Fclient%2Fobject.java;h=18054b7dbc3ea85ddecbe7d914f18688508ad6ad;hb=349c4a3b6842fd54d791e0a92728dba294b30488;hp=4757589e629db312f73099e4e314ac44806e06a0;hpb=5ed519b05a2d87d1889d4234fc5f7b538c53f1f2;p=vamsas.git diff --git a/src/org/vamsas/client/object.java b/src/org/vamsas/client/object.java index 4757589..18054b7 100644 --- a/src/org/vamsas/client/object.java +++ b/src/org/vamsas/client/object.java @@ -163,7 +163,7 @@ public abstract class object { if (registerable && vorbaId == null) { // Try to use the associated factory. if (__vorba != null) - if ((vorbaId = __vorba.makeVorbaId()) == null) + if ((vorbaId = __vorba.makeVorbaId(this)) == null) return null; // Factory not valid. else { this.setInstanceIdField(); @@ -235,7 +235,8 @@ public abstract class object { * Implementation note for the todo: * this works like a depth-first search over all vamsas objects in an vamsasDocument. * The doHash() function is used as the 'visited' flag - - * this *is not* a valid heuristic, although it will work "most of the time". + * this *is not* a valid heuristic, although it will work "most of the time". + * TODO: LATER? Add another method for setDefaultProvenanceField (in the spirit of setInstanceIdField) using the info from the __vorba.getClient/User/Session methods */ protected void __ensure_instance_ids() { if (__vorba==null)