{"title":"JPA\u306f\u7d44\u307f\u8fbc\u307fDB\u3092\u5229\u7528\u3059\u308b\u969b\u306b\u30c6\u30fc\u30d6\u30eb\u3092\u81ea\u52d5\u751f\u6210\u3059\u308b","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmimatasanmata.hatenablog.com%2Fentry%2F2023%2F05%2F09%2F235310\" title=\"JPA\u306f\u7d44\u307f\u8fbc\u307fDB\u3092\u5229\u7528\u3059\u308b\u969b\u306b\u30c6\u30fc\u30d6\u30eb\u3092\u81ea\u52d5\u751f\u6210\u3059\u308b - \u5de8\u4eba\u306e\u80a9\u306e\u4e0a\" 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","categories":["JPA","Spring Boot","H2"],"description":"0. tl;dr JPA\u306f\u7d44\u307f\u8fbc\u307fDB\u3092\u5229\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306bEntity\u306e\u60c5\u5831\u306a\u3069\u304b\u3089DB\u3068table\u3092\u81ea\u52d5\u3067\u751f\u6210\u3059\u308b application.properties\uff08application.yaml\uff09\u306espring.jpa.hibernate.ddl-auto\u3068\u3044\u3046\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u81ea\u52d5\u751f\u6210\u3059\u308b / \u3057\u306a\u3044\u304c\u5236\u5fa1\u3055\u308c\u308b 1. \u306f\u3058\u3081\u306b / \u80cc\u666f Spring Boot\u3092\u5229\u7528\u3057\u305f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u304a\u3044\u3066\u3001Integration Test\u306e\u5b9f\u88c5\u306e\u969b\u306bH2\uff08\u7d44\u307f\u8fbc\u307f\u306ein-memory DB\uff09\u3068JPA\u3092\u5229\u7528\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001H2\u306e\u521d\u671f\u5316\u306e\u305f\u3081\u306b\u66f8\u3044\u3066\u3044\u305fDDL\u306e\u30b9\u30ad\u30fc\u30de\u3068\u3001JPA\u7528\u306eEntity\u306e\u30b9\u30ad\u30fc\u30de\u306e\u6574\u5408\u2026","width":"100%","image_url":null,"published":"2023-05-09 23:53:10","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/mimatasanmata/","author_name":"mimatasanmata","blog_url":"https://mimatasanmata.hatenablog.com/","url":"https://mimatasanmata.hatenablog.com/entry/2023/05/09/235310","blog_title":"\u5de8\u4eba\u306e\u80a9\u306e\u4e0a","provider_name":"Hatena Blog","height":"190"}