You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@juddi.apache.org by Computer Learning Inst <cl...@yahoo.com> on 2011/06/20 08:32:04 UTC

TModelKey "uuid:c0b9fe13-324f-413d-5a5b-2004db8e5cc2"

Sample Code:
============
CategoryBag objBizNewCategoryBag = new CategoryBag();
KeyedReference objKR = new KeyedReference();
objKR.setKeyName("manufacturing industry");
objKR.setKeyValue("88888");
objKR.setTModelKey("uuid:c0b9fe13-324f-413d-5a5b-2004db8e5cc2");
objBizNewCategoryBag.getKeyedReference().add(objKR);
theOrganization.setCategoryBag(objBizNewCategoryBag);

The above code works (during saving a new business).

However, how do we generate a *valid* TModelKey? There are a number of online programs scattered over the web and they all seem to use the above key ==> uuid:c0b9fe13-324f-413d-5a5b-2004db8e5cc2

What is the significance of "uuid:c0b9fe13-324f-413d-5a5b-2004db8e5cc2"?  How do we generate a *valid* TModelKey in our programs?