Hi All,
I have a question regarding the manipulation relation.
As per the relational data model on the BG website, the manipulation is represented as:
Manipulation (mid, modifierid, rid, resourcecreatorid, timestamp, type, content)
This relationship is used in three of the BG actions:
public abstract int viewCommentOnResource(int requesterID, int profileOwnerID, int resourceID, Vector<HashMap<String,ByteIterator>> result);
public abstract int postCommentOnResource(int commentCreatorID, int resourceCreatorID, int resourceID, HashMap<String,ByteIterator> values);
public abstract int delCommentOnResource(int resourceCreatorID, int resourceID,int manipulationID);
My question is this:
What should be the primary key of Manipulation table?
Should it be a composite key(mid, modifierid, rid, resourcecreatorid) as specified in data model?
If so, why does delCommentOnResource and postCommentOnResource do not receive all the attributes of the composite key even though they are accessing a unique comment(or resource)?
Please let me know if I am missing something.
Regards,
Ankit