{"action":"created","issue":{"url":"https://api.github.com/repos/CharlinFeng/CoreModel/issues/10","labels_url":"https://api.github.com/repos/CharlinFeng/CoreModel/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/CharlinFeng/CoreModel/issues/10/comments","events_url":"https://api.github.com/repos/CharlinFeng/CoreModel/issues/10/events","html_url":"https://github.com/CharlinFeng/CoreModel/issues/10","id":111073546,"number":10,"title":"hostId","user":{"login":"fjliang","id":5925784,"avatar_url":"https://avatars.githubusercontent.com/u/5925784?v=3","gravatar_id":"","url":"https://api.github.com/users/fjliang","html_url":"https://github.com/fjliang","followers_url":"https://api.github.com/users/fjliang/followers","following_url":"https://api.github.com/users/fjliang/following{/other_user}","gists_url":"https://api.github.com/users/fjliang/gists{/gist_id}","starred_url":"https://api.github.com/users/fjliang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fjliang/subscriptions","organizations_url":"https://api.github.com/users/fjliang/orgs","repos_url":"https://api.github.com/users/fjliang/repos","events_url":"https://api.github.com/users/fjliang/events{/privacy}","received_events_url":"https://api.github.com/users/fjliang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-12T23:22:30Z","updated_at":"2015-10-13T00:57:36Z","closed_at":null,"body":" 对于“核心字段：hostID是服务器主键，任何使用CoreModel的模型必须拥有唯一的hostID，如果您没有hostID，请构建。” 我看过demo后，有几个问题不是太明白，请教一下：\r\n1.你怎么知道hostID对应服务器中的哪个字段\r\n2.支持多个主键吗？联合主键\r\n3.怎么构建hostID"},"comment":{"url":"https://api.github.com/repos/CharlinFeng/CoreModel/issues/comments/147561229","html_url":"https://github.com/CharlinFeng/CoreModel/issues/10#issuecomment-147561229","issue_url":"https://api.github.com/repos/CharlinFeng/CoreModel/issues/10","id":147561229,"user":{"login":"CharlinFeng","id":8357630,"avatar_url":"https://avatars.githubusercontent.com/u/8357630?v=3","gravatar_id":"","url":"https://api.github.com/users/CharlinFeng","html_url":"https://github.com/CharlinFeng","followers_url":"https://api.github.com/users/CharlinFeng/followers","following_url":"https://api.github.com/users/CharlinFeng/following{/other_user}","gists_url":"https://api.github.com/users/CharlinFeng/gists{/gist_id}","starred_url":"https://api.github.com/users/CharlinFeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CharlinFeng/subscriptions","organizations_url":"https://api.github.com/users/CharlinFeng/orgs","repos_url":"https://api.github.com/users/CharlinFeng/repos","events_url":"https://api.github.com/users/CharlinFeng/events{/privacy}","received_events_url":"https://api.github.com/users/CharlinFeng/received_events","type":"User","site_admin":false},"created_at":"2015-10-13T00:57:36Z","updated_at":"2015-10-13T00:57:36Z","body":"1.hostID对应id这个key，你也可以修改。\r\n2.对于hostID只需确定唯一性即可。多主键没有考虑。\r\n3.构建hostID比较麻烦，常用方法可以使用表的总记录数作为最新数据的hostID，然后或者是上一条数据的hostID + 1"}}