문서 ID 참조가 포함 된 impex에 문제점이 있습니다.문서 ID 참조가 임팩트를 위해 작동하지 않음
From docs : "특히 partOf 항목 값을 가져 오는 경우 partOf 항목은 종종 고유 키를 제공하지 않고 외래 키로 만 해당 부모를 보유하기 때문에 일반적인 항목 기술을 사용하여 이러한 항목을 참조해야합니다 . " * items.xml (만 가장 중요한 부분)에서
항목
<itemtype code="A" autocreate="true" generate="true" abstract="true"/>
<itemtype code="B" autocreate="true" generate="true" extends="A">
<deployment table="btable" typecode="20115" />
<attributes>
<attribute qualifier="code" type="java.lang.Integer" autocreate="true" generate="true">
<persistence type="property"/>
<modifiers optional="false"/>
</attribute>
</attributes>
</itemtype>
<itemtype code="C" autocreate="true" generate="true">
<deployment table="ctable" typecode="20117" />
<attributes>
<attribute qualifier="code" type="java.lang.String" autocreate="true" generate="true">
<persistence type="property"/>
<modifiers optional="false" unique="true"/>
</attribute>
<attribute qualifier="test" type="A" autocreate="true" generate="true">
<persistence type="property"/>
<modifiers optional="false" partof="true"/>
</attribute>
</attributes>
</itemtype>
의 Impex 코드 :
INSERT B;code;&docIdRef
;1;docId
INSERT_UPDATE C;code[unique=true];test(&docIdRef)
;uniqueCode;docId
오류 메시지 : 내가 '공범자'를 제거
cannot create C with values ItemAttributeMap[ registry: null, type: <null>, (...) due to [de.hybris.plat[email protected]3b777877]:missing values for [test] in model C
수정 자 'test'속성 (C 클래스)에서 모든 것이 정상적으로 작동했습니다.
'partof'한정자를 유지하려는 경우 임팩트가 어떻게 나타나야하는지 궁금합니다.