I know how XWD_ID (xwikidoc) is created, but I don't know how XWO_ID (xwikiobject) is created. I know that this is the same ID for tables xwikidates, xwikiintegers, xwikilargestrings,... But I don't know how it is created. Can you help me ?

Thanks,

Caroline.

有帮助吗?

解决方案

All IDs are assigned manually so far, and they are obtained from the entity's getId() method. For objects, this is BaseElement.getId() which is the new method of computing IDs (introduced in 4.0). Up to 3.5, it used to be BaseCollection.getId() which is actually the hashCode of the object, which is the hashcode of the string obtained by concatenating the document name, the XClass name, and the object number.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top