I'm adding some fields to the abc:recipients (recipient's extension) schema.
It currently has 01 PK in the base recipient schema. I need to add an attribute from the extension also as PK. So both are not a combined PK, rather individual PKs.
Is this ok?
This is how I have set the codinterno field as PK:
<key internal="true" name="codinterno_pk">
<keyfield xpath="@codinterno"/>
</key>
解決済! 解決策の投稿を見る。
トピックはコミュニティのコンテンツの分類に役立ち、関連コンテンツを発見する可能性を広げます。
表示
返信
いいね!の合計
My main goal was to have "codinterno" as a unique field.
@ParthaSarathy suggested doing:
<dbindex name="myIndex" unique="true">
<keyfield xpath="@myField"/>
</dbindex>
Since it was my main goal to have that as a unique field, Paratha suggestion works for my case.
Thank you both.
表示
返信
いいね!の合計
Hello @god_prophet My recommendation would be create only one primary key in Recipient schema. @id field is defined as PK by default. So I would suggest creating "codinterno" as another attribute.
My main goal was to have "codinterno" as a unique field.
@ParthaSarathy suggested doing:
<dbindex name="myIndex" unique="true">
<keyfield xpath="@myField"/>
</dbindex>
Since it was my main goal to have that as a unique field, Paratha suggestion works for my case.
Thank you both.
表示
返信
いいね!の合計