how to make own unique key based upon more than one peoperties(fields) of a model(Kind) in datastore.
here it is a situation i have 4 fields name,device,id,data. now i want to make a key based upon my 3 fields i.e name,device,id so that whenever data comes and if key is already present against that data then it will be replaced against that key else a new data data with new key is inserted.in this way i can save a db hit(i.e i will not need that hit which is required to check that a data against a key in model is present or not it will just replace data itself if already present else insert a newone record)
so how can i make this key using my 3 fields.