{"title":"TypeORM\u306eData Mapper\u30d1\u30bf\u30fc\u30f3\u306b\u304a\u3051\u308b\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u306e\u578b\u5b89\u5168\u6027\u3092\u62c5\u4fdd\u3059\u308b","author_url":"https://blog.hatena.ne.jp/d-kimuson/","height":"190","blog_title":"Mobile Factory Tech Blog","provider_name":"Hatena Blog","categories":["\u30d0\u30c3\u30af\u30a8\u30f3\u30c9","TypeScript","\u958b\u767a"],"type":"rich","author_name":"d-kimuson","url":"https://tech.mobilefactory.jp/entry/2023/09/06/160000","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.mobilefactory.jp%2Fentry%2F2023%2F09%2F06%2F160000\" title=\"TypeORM\u306eData Mapper\u30d1\u30bf\u30fc\u30f3\u306b\u304a\u3051\u308b\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u306e\u578b\u5b89\u5168\u6027\u3092\u62c5\u4fdd\u3059\u308b - Mobile Factory Tech Blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","provider_url":"https://hatena.blog","width":"100%","published":"2023-09-06 16:00:00","image_url":null,"blog_url":"https://tech.mobilefactory.jp/","description":"\u3053\u3093\u306b\u3061\u306f\uff01BC \u30c1\u30fc\u30e0\u3067\u30a8\u30f3\u30b8\u30cb\u30a2\u3092\u3057\u3066\u3044\u308b id:d-kimuson \u3067\u3059\u3002 \u4eca\u56de\u306f\u5916\u90e8\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u306b\u95a2\u3057\u3066\u578b\u5b89\u5168\u6027\u306e\u4e4f\u3057\u3044 TypeORM \u306e Data Mapper \u30d1\u30bf\u30fc\u30f3\u3092\u72ec\u81ea\u306e\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u578b\u3092\u4f7f\u3063\u3066\u3061\u3087\u3063\u3068\u30de\u30b7\u306b\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002 \u524d\u63d0: TypeORM \u306e\u5916\u90e8\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u306b\u3064\u3044\u3066 TypeORM \u3067\u306f ManyToMany \u7b49\u306e\u30c7\u30b3\u30ec\u30fc\u30bf\u3092\u4f7f\u3063\u3066\u30b9\u30ad\u30fc\u30de\u306b Foreign Key \u3092\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 // \u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u30b5\u30f3\u30d7\u30eb\u3067\u3059 @Entity() export class Category { @PrimaryGeneratedColumn() id: nu\u2026"}