문제

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