Using MetaType.getPrimaryKey as MetaObject's PrimaryKey expect StateMachineObject

1. add relationship between RelationMetadata and RelationObject