Improved: Missing foreign key constraint for fields userLoginId &
userPrefGroupTypeId in UserPreference entity
UserPreference.userLoginId is related to UserLogin.userLoginId.
UserPreference.userPrefGroupTypeId is related to
UserPrefGroupType.userPrefGroupTypeId.
Thanks: Aditya
@@ -639,6 +639,12 @@ under the License.
<field name="userPrefDataType" type="id-long"><description>The java data type of this preference (empty = java.lang.String)</description></field>
<prim-key field="userLoginId"/>
<prim-key field="userPrefTypeId"/>
+ <relation type="one" fk-name="UP_User_Login" rel-entity-name="UserLogin">
+ <key-map field-name="userLoginId"/>
+ </relation>
+ <relation type="one" fk-name="UP_User_Group_Type" rel-entity-name="UserPrefGroupType">
+ <key-map field-name="userPrefGroupTypeId"/>
+ </relation>
</entity>
<entity entity-name="UserPrefGroupType"
