{"image_url":null,"provider_name":"Hatena Blog","url":"https://kwatch.hatenadiary.org/entry/20081210/1228922402","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkwatch.hatenadiary.org%2Fentry%2F20081210%2F1228922402\" title=\" DataMapper \u3067 relation \u3092\u4f7f\u3063\u305f\u691c\u7d22 - k\u306a\u3093\u3068\u304b\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","provider_url":"https://hatena.blog","published":"2008-12-10 00:20:02","blog_title":"k\u306a\u3093\u3068\u304b\u306e\u65e5\u8a18","width":"100%","blog_url":"https://kwatch.hatenadiary.org/","author_name":"kwatch","title":" DataMapper \u3067 relation \u3092\u4f7f\u3063\u305f\u691c\u7d22","categories":["merb"],"description":"\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u8f09\u3063\u3066\u306a\u3044\u3053\u3068\u3092\u88dc\u8db3\u3057\u3066\u3044\u3053\u3046\u30b7\u30ea\u30fc\u30ba\u3002DataMapper \u3067\u3001\u305f\u3068\u3048\u3070\u6b21\u306e\u3088\u3046\u306a\u30e2\u30c7\u30eb\u30af\u30e9\u30b9\u304c\u3042\u308b\u3068\u3059\u308b\u3002 ### \u5f93\u696d\u54e1 class Employee include DataMapper::Resource property :id, Serial property :name, String, :nullable => false property :department_id, Integer belongs_to :department end ### \u90e8\u9580 class Department include DataMapper::Resource property\u2026","type":"rich","author_url":"https://blog.hatena.ne.jp/kwatch/"}