Вопрос

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