Any help please, on this issue too!

How do we generate a *valid* TModelKey in our Java source code, instead of the 
following HARDCODED string?  See further comments below.

From: Computer Learning Inst
Subject: TModelKey "uuid:c0b9fe13-324f-413d-5a5b-2004db8e5cc2"
To: [email protected]
Date: Monday, June 20, 2011, 2:32 AM

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 HARDCODED 
key ==> uuid:c0b9fe13-324f-413d-5a5b-2004db8e5cc2

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

Reply via email to