{"id":26644,"date":"2024-10-27T10:53:35","date_gmt":"2024-10-27T10:53:35","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=26644"},"modified":"2024-11-26T07:34:50","modified_gmt":"2024-11-26T07:34:50","slug":"%ec%8a%a4%ed%94%84%eb%a7%81-%eb%b6%80%ed%8a%b8-%eb%b0%b1%ec%97%94%eb%93%9c-%ea%b0%9c%eb%b0%9c-%ea%b0%95%ec%a2%8c-%ec%97%94%ed%8b%b0%ed%8b%b0-%eb%a7%a4%eb%8b%88%ec%a0%80%eb%9e%80","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/26644\/","title":{"rendered":"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, \uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800\ub780"},"content":{"rendered":"<p><body><\/p>\n<p>\uc548\ub155\ud558\uc138\uc694! \uc774\ubc88 \uae00\uc5d0\uc11c\ub294 \uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c\uc744 \uc704\ud55c \ud074\ub798\uc2a4\uc778 <code>EntityManager<\/code>\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800\ub294 JPA(Java Persistence API)\uc5d0\uc11c \uc911\uc694\ud55c \uc5ed\ud560\uc744 \ud558\uba70, \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc640\uc758 \uc0c1\ud638\uc791\uc6a9\uc744 \ub2e8\uc21c\ud654\ud574\uc90d\ub2c8\ub2e4. \uc774 \uae00\uc744 \ud1b5\ud574 \uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800\uc758 \uc815\uc758, \uae30\ub2a5, \uc0ac\uc6a9 \ubc29\ubc95, \uadf8\ub9ac\uace0 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\uc640\uc758 \ud1b5\ud569 \ubc29\ubc95\uc744 \uae4a\uc774 \uc788\uac8c \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>1. \uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800\ub780?<\/h2>\n<p>\uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800\ub294 JPA\uc758 \ud575\uc2ec \uc778\ud130\ud398\uc774\uc2a4\ub85c, \uc5d4\ud2f0\ud2f0\uc758 \uc218\uba85 \uc8fc\uae30\ub97c \uad00\ub9ac\ud558\uace0 \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc758 CRUD(Create, Read, Update, Delete) \uc791\uc5c5\uc744 \ucc98\ub9ac\ud558\ub294 \ub370 \uc0ac\uc6a9\ub429\ub2c8\ub2e4. \uc27d\uac8c \ub9d0\ud574, \uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800\ub294 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uacfc \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uac04\uc758 \ubaa8\ub4e0 \uc0c1\ud638\uc791\uc6a9\uc744 \ub2f4\ub2f9\ud558\ub294 \uc911\uc7ac\uc790 \uc5ed\ud560\uc744 \ud569\ub2c8\ub2e4.<\/p>\n<h3>1.1. \uc218\uba85 \uc8fc\uae30 \uad00\ub9ac<\/h3>\n<p>\uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800\ub294 \uc5d4\ud2f0\ud2f0\uc758 \uc0c1\ud0dc\ub97c \uad00\ub9ac\ud569\ub2c8\ub2e4. JPA\uc5d0\uc11c \uc5d4\ud2f0\ud2f0\ub294 \ub2e4\uc74c\uacfc \uac19\uc740 \uc0c1\ud0dc\ub97c \uac00\uc9d1\ub2c8\ub2e4:<\/p>\n<ul>\n<li><strong>New:<\/strong> \uc5d4\ud2f0\ud2f0\uac00 \uc0c8\ub85c \uc0dd\uc131\ub418\uc5c8\uc9c0\ub9cc \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc5d0 \uc800\uc7a5\ub418\uc9c0 \uc54a\uc740 \uc0c1\ud0dc<\/li>\n<li><strong>Managed:<\/strong> \ud604\uc7ac \uc601\uc18d\uc131 \ucee8\ud14d\uc2a4\ud2b8\uc5d0 \uc758\ud574 \uad00\ub9ac\ub418\uace0 \uc788\ub294 \uc0c1\ud0dc<\/li>\n<li><strong>Detached:<\/strong> \uc5d4\ud2f0\ud2f0\uac00 \uc601\uc18d\uc131 \ucee8\ud14d\uc2a4\ud2b8\uc5d0\uc11c \ubd84\ub9ac\ub41c \uc0c1\ud0dc<\/li>\n<li><strong>Removed:<\/strong> \uc5d4\ud2f0\ud2f0\uac00 \uc0ad\uc81c\ub41c \uc0c1\ud0dc<\/li>\n<\/ul>\n<h3>1.2. CRUD \uc791\uc5c5 \ucc98\ub9ac<\/h3>\n<p>\uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800\ub294 \uc5d4\ud2f0\ud2f0\uc758 \uc0dd\uc131, \uc870\ud68c, \uc218\uc815, \uc0ad\uc81c \uc791\uc5c5\uc744 \ubaa8\ub450 \ucc98\ub9ac\ud569\ub2c8\ub2e4. \uac01\uac01\uc758 \uc791\uc5c5\uc740 \ub2e4\uc74c\uacfc \uac19\uc774 \uc218\ud589\ub429\ub2c8\ub2e4:<\/p>\n<pre><code>EntityManager em = entityManagerFactory.createEntityManager();\nem.getTransaction().begin();\n\n\/\/ Create\nMyEntity entity = new MyEntity();\nem.persist(entity);\n\n\/\/ Read\nMyEntity foundEntity = em.find(MyEntity.class, entityId);\n\n\/\/ Update\nfoundEntity.setProperty(value);\nem.merge(foundEntity);\n\n\/\/ Delete\nem.remove(foundEntity);\n\nem.getTransaction().commit();<\/code><\/pre>\n<h2>2. \uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800\uc758 \uc8fc\uc694 \uba54\uc18c\ub4dc<\/h2>\n<p>\uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800\ub294 \uc5ec\ub7ec \uc720\uc6a9\ud55c \uba54\uc18c\ub4dc\ub97c \uc81c\uacf5\ud569\ub2c8\ub2e4. \uc5ec\uae30\uc11c\ub294 \uac00\uc7a5 \ub9ce\uc774 \uc0ac\uc6a9\ub418\ub294 \uc8fc\uc694 \uba54\uc18c\ub4dc\ub97c \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>2.1. persist()<\/h3>\n<p><code>persist()<\/code> \uba54\uc18c\ub4dc\ub294 \uc0c8\ub85c\uc6b4 \uc5d4\ud2f0\ud2f0\ub97c \uc601\uc18d\uc131 \ucee8\ud14d\uc2a4\ud2b8\uc5d0 \ucd94\uac00\ud569\ub2c8\ub2e4. \uc774 \uba54\uc18c\ub4dc\ub97c \ud638\ucd9c\ud558\uba74 \uc5d4\ud2f0\ud2f0\uac00 <strong>Managed<\/strong> \uc0c1\ud0dc\ub85c \uc804\ud658\ub429\ub2c8\ub2e4.<\/p>\n<h3>2.2. find()<\/h3>\n<p><code>find()<\/code> \uba54\uc18c\ub4dc\ub294 \uc8fc\uc5b4\uc9c4 ID\ub85c \uc5d4\ud2f0\ud2f0\ub97c \uc870\ud68c\ud569\ub2c8\ub2e4. \ucc3e\uc740 \uc5d4\ud2f0\ud2f0\uac00 \uc5c6\uc73c\uba74 <code>null<\/code>\uc744 \ubc18\ud658\ud569\ub2c8\ub2e4.<\/p>\n<h3>2.3. merge()<\/h3>\n<p><code>merge()<\/code> \uba54\uc18c\ub4dc\ub294 \uc8fc\uc5b4\uc9c4 \uc5d4\ud2f0\ud2f0\ub97c \uc601\uc18d\uc131 \ucee8\ud14d\uc2a4\ud2b8\uc5d0 \ubcd1\ud569\ud558\uc5ec <strong>Managed<\/strong> \uc0c1\ud0dc\ub85c \uc804\ud658\ud569\ub2c8\ub2e4. \uae30\uc874 \uc5d4\ud2f0\ud2f0\uac00 \uc5c5\ub370\uc774\ud2b8\ub41c \uacbd\uc6b0, DB\uc5d0\ub3c4 \ubc18\uc601\ub429\ub2c8\ub2e4.<\/p>\n<h3>2.4. remove()<\/h3>\n<p><code>remove()<\/code> \uba54\uc18c\ub4dc\ub294 \uc8fc\uc5b4\uc9c4 \uc5d4\ud2f0\ud2f0\ub97c \uc0ad\uc81c\ud569\ub2c8\ub2e4. \uc774 \uba54\uc18c\ub4dc\ub97c \ud638\ucd9c\ud558\uba74 \uc5d4\ud2f0\ud2f0\uac00 <strong>Removed<\/strong> \uc0c1\ud0dc\ub85c \ud45c\uc2dc\ub429\ub2c8\ub2e4.<\/p>\n<h2>3. \uc2a4\ud504\ub9c1 \ubd80\ud2b8\uc640 \uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800<\/h2>\n<p>\uc2a4\ud504\ub9c1 \ubd80\ud2b8\uc5d0\uc11c\ub294 <code>EntityManager<\/code>\ub97c \uc27d\uac8c \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc77c\ubc18\uc801\uc73c\ub85c <code>@PersistenceContext<\/code> \uc5b4\ub178\ud14c\uc774\uc158\uc744 \uc0ac\uc6a9\ud558\uc5ec \uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800\ub97c \uc8fc\uc785\ubc1b\uc2b5\ub2c8\ub2e4.<\/p>\n<pre><code>@Autowired\nprivate EntityManagerFactory entityManagerFactory;\n\npublic void someMethod() {\n    EntityManager em = entityManagerFactory.createEntityManager();\n    em.getTransaction().begin();\n\n    \/\/ \uc5d4\ud2f0\ud2f0 \uc791\uc5c5 \uc218\ud589...\n\n    em.getTransaction().commit();\n}<\/code><\/pre>\n<h3>3.1. @PersistenceContext<\/h3>\n<p><code>EntityManager<\/code>\ub97c \uc790\ub3d9\uc73c\ub85c \uc8fc\uc785\ubc1b\uae30 \uc704\ud574 <code>@PersistenceContext<\/code> \uc5b4\ub178\ud14c\uc774\uc158\uc744 \uc0ac\uc6a9\ud560 \uc218 \uc788\uc73c\uba70, \uc544\ub798\uc640 \uac19\uc774 \uc124\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n<pre><code>@PersistenceContext\nprivate EntityManager entityManager;<\/code><\/pre>\n<h3>3.2. \ud2b8\ub79c\uc7ad\uc158 \uad00\ub9ac<\/h3>\n<p>\ud2b8\ub79c\uc7ad\uc158 \uad00\ub9ac\ub294 \uc2a4\ud504\ub9c1\uc758 <code>@Transactional<\/code> \uc5b4\ub178\ud14c\uc774\uc158\uc744 \ud1b5\ud574 \uc27d\uac8c \ucc98\ub9ac\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774 \uc5b4\ub178\ud14c\uc774\uc158\uc744 \uba54\uc18c\ub4dc \uc704\uc5d0 \ubd99\uc774\uba74 \uc790\ub3d9\uc73c\ub85c \ud2b8\ub79c\uc7ad\uc158\uc774 \uad00\ub9ac\ub429\ub2c8\ub2e4.<\/p>\n<pre><code>@Transactional\npublic void someTransactionalMethod() {\n    MyEntity entity = new MyEntity();\n    entityManager.persist(entity);\n    \/\/ ... \ucd94\uac00 \uc791\uc5c5 ...\n}<\/code><\/pre>\n<h2>4. \uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800 \ud329\ud1a0\ub9ac\uc640 \uc124\uc815<\/h2>\n<p>\uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800 \ud329\ud1a0\ub9ac\ub294 \uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800\ub97c \uc0dd\uc131\ud558\ub294 \ub370 \ud544\uc694\ud55c \uc124\uc815 \uc815\ubcf4\ub97c \uc81c\uacf5\ud569\ub2c8\ub2e4. \uc2a4\ud504\ub9c1 \ubd80\ud2b8\uc5d0\uc11c\ub294 \uc8fc\ub85c application.properties \ub610\ub294 application.yml \ud30c\uc77c\uc5d0 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\uacb0 \uc815\ubcf4\ub97c \uc124\uc815\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>spring.datasource.url=jdbc:mysql:\/\/localhost:3306\/mydb\nspring.datasource.username=myuser\nspring.datasource.password=mypassword\nspring.jpa.hibernate.ddl-auto=update\nspring.jpa.show-sql=true<\/code><\/pre>\n<h2>5. \uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800\uc758 \uc7a5\uc810<\/h2>\n<p>\uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800\ub294 \ub2e4\uc74c\uacfc \uac19\uc740 \uc5ec\ub7ec \uac00\uc9c0 \uc7a5\uc810\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4:<\/p>\n<ul>\n<li>\ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc0c1\ud638\uc791\uc6a9\uc744 \ub2e8\uc21c\ud654\ud558\uc5ec \uac1c\ubc1c\uc790\uc758 \uc0dd\uc0b0\uc131\uc744 \ub192\uc784<\/li>\n<li>\uc601\uc18d\uc131 \ucee8\ud14d\uc2a4\ud2b8\ub97c \ud1b5\ud574 \uc5d4\ud2f0\ud2f0\uc758 \uc0c1\ud0dc\ub97c \uad00\ub9ac\ud568\uc73c\ub85c\uc368 \ub370\uc774\ud130 \ubb34\uacb0\uc131\uc744 \ubcf4\uc7a5<\/li>\n<li>\uc800\uc7a5\uc18c \ud328\ud134\uc744 \ud1b5\ud574 \ucf54\ub4dc\uc758 \uc720\uc9c0 \ubcf4\uc218\uc131\uc744 \ub192\uc784<\/li>\n<li>\ud2b8\ub79c\uc7ad\uc158 \uad00\ub9ac\uc640 \uc131\ub2a5 \ucd5c\uc801\ud654\uc5d0 \uc720\ub9ac\ud568<\/li>\n<\/ul>\n<h2>6. \uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800 \uc0ac\uc6a9 \uc2dc \uc8fc\uc758\uc0ac\ud56d<\/h2>\n<p>\uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800\ub97c \uc0ac\uc6a9\ud560 \ub54c \uc8fc\uc758\ud574\uc57c \ud560 \uc0ac\ud56d\ub4e4\ub3c4 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n<ul>\n<li>\uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800\ub294 \uc2a4\ub808\ub4dc\uc5d0 \uc548\uc804\ud558\uc9c0 \uc54a\uc73c\ubbc0\ub85c, \uac01 \uc2a4\ub808\ub4dc\ub9c8\ub2e4 \ubcc4\ub3c4\uc758 \uc778\uc2a4\ud134\uc2a4\ub97c \uc0ac\uc6a9\ud574\uc57c \ud568<\/li>\n<li>\ud2b8\ub79c\uc7ad\uc158 \uad00\ub9ac\ub97c \uba85\ud655\ud788 \ud558\uc5ec \ub370\uc774\ud130 \ubb34\uacb0\uc131\uc774 \uc720\uc9c0\ub418\uac8c \ud574\uc57c \ud568<\/li>\n<li>\uc801\uc808\ud55c \uc608\uc678 \ucc98\ub9ac\ub97c \ud1b5\ud574 \uc624\ub958 \ubc1c\uc0dd \uc2dc graceful\ud558\uac8c \ub300\uc751\ud560 \uc218 \uc788\uc5b4\uc57c \ud568<\/li>\n<\/ul>\n<h2>7. \ub9c8\ubb34\ub9ac<\/h2>\n<p>\uc774\ubc88 \uae00\uc5d0\uc11c\ub294 \uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800\uc5d0 \ub300\ud574 \uc54c\uc544\ubcf4\uace0 \uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c\uc5d0\uc11c\uc758 \uc0ac\uc6a9 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc0b4\ud3b4\ubcf4\uc558\uc2b5\ub2c8\ub2e4. \uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800\ub294 JPA\uc758 \ud575\uc2ec \uc694\uc18c\ub85c, \ub370\uc774\ud130\uc758 \uc601\uc18d\uc131\uc744 \uad00\ub9ac\ud558\uace0, CRUD \uc791\uc5c5\uc744 \uac04\uc18c\ud654\ud558\ub294 \ub370 \ud070 \ub3c4\uc6c0\uc744 \uc90d\ub2c8\ub2e4. \uc2a4\ud504\ub9c1 \ubd80\ud2b8\ub97c \uc774\uc6a9\ud55c \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uacfc\uc815\uc5d0\uc11c \uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800\ub97c \uc798 \ud65c\uc6a9\ud558\uc5ec \ud6a8\uc728\uc801\uc774\uace0 \uc720\uc9c0 \ubcf4\uc218 \uac00\ub2a5\ud55c \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ub9cc\ub4dc\ub294 \ub370 \uae30\uc5ec\ud558\uc2dc\uae38 \ubc14\ub78d\ub2c8\ub2e4.<\/p>\n<h3>7.1. \ucc38\uace0 \uc790\ub8cc<\/h3>\n<ul>\n<li><a href=\"https:\/\/docs.spring.io\/spring-data\/jpa\/docs\/current\/reference\/html\/#reference\">Spring Data JPA Documentation<\/a><\/li>\n<li><a href=\"https:\/\/docs.jboss.org\/hibernate\/orm\/5.4\/userguide\/html_single\/Hibernate_User_Guide.html\">Hibernate User Guide<\/a><\/li>\n<li><a href=\"https:\/\/www.oracle.com\/java\/technologies\/persistence-jsp.html\">Java Persistence API Documentation<\/a><\/li>\n<\/ul>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc548\ub155\ud558\uc138\uc694! \uc774\ubc88 \uae00\uc5d0\uc11c\ub294 \uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c\uc744 \uc704\ud55c \ud074\ub798\uc2a4\uc778 EntityManager\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800\ub294 JPA(Java Persistence API)\uc5d0\uc11c \uc911\uc694\ud55c \uc5ed\ud560\uc744 \ud558\uba70, \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc640\uc758 \uc0c1\ud638\uc791\uc6a9\uc744 \ub2e8\uc21c\ud654\ud574\uc90d\ub2c8\ub2e4. \uc774 \uae00\uc744 \ud1b5\ud574 \uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800\uc758 \uc815\uc758, \uae30\ub2a5, \uc0ac\uc6a9 \ubc29\ubc95, \uadf8\ub9ac\uace0 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\uc640\uc758 \ud1b5\ud569 \ubc29\ubc95\uc744 \uae4a\uc774 \uc788\uac8c \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. \uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800\ub780? \uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800\ub294 JPA\uc758 \ud575\uc2ec \uc778\ud130\ud398\uc774\uc2a4\ub85c, \uc5d4\ud2f0\ud2f0\uc758 \uc218\uba85 \uc8fc\uae30\ub97c \uad00\ub9ac\ud558\uace0 \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc758 CRUD(Create, &hellip; <a href=\"https:\/\/atmokpo.com\/w\/26644\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, \uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800\ub780&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[21],"tags":[],"class_list":["post-26644","post","type-post","status-publish","format-standard","hentry","category-21"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, \uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800\ub780 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/atmokpo.com\/w\/26644\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, \uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800\ub780 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\uc548\ub155\ud558\uc138\uc694! \uc774\ubc88 \uae00\uc5d0\uc11c\ub294 \uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c\uc744 \uc704\ud55c \ud074\ub798\uc2a4\uc778 EntityManager\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800\ub294 JPA(Java Persistence API)\uc5d0\uc11c \uc911\uc694\ud55c \uc5ed\ud560\uc744 \ud558\uba70, \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc640\uc758 \uc0c1\ud638\uc791\uc6a9\uc744 \ub2e8\uc21c\ud654\ud574\uc90d\ub2c8\ub2e4. \uc774 \uae00\uc744 \ud1b5\ud574 \uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800\uc758 \uc815\uc758, \uae30\ub2a5, \uc0ac\uc6a9 \ubc29\ubc95, \uadf8\ub9ac\uace0 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\uc640\uc758 \ud1b5\ud569 \ubc29\ubc95\uc744 \uae4a\uc774 \uc788\uac8c \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. \uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800\ub780? \uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800\ub294 JPA\uc758 \ud575\uc2ec \uc778\ud130\ud398\uc774\uc2a4\ub85c, \uc5d4\ud2f0\ud2f0\uc758 \uc218\uba85 \uc8fc\uae30\ub97c \uad00\ub9ac\ud558\uace0 \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc758 CRUD(Create, &hellip; \ub354 \ubcf4\uae30 &quot;\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, \uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800\ub780&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/26644\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-27T10:53:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T07:34:50+00:00\" \/>\n<meta name=\"author\" content=\"root\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:site\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"root\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/26644\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/26644\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, \uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800\ub780\",\"datePublished\":\"2024-10-27T10:53:35+00:00\",\"dateModified\":\"2024-11-26T07:34:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/26644\/\"},\"wordCount\":44,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc564\ub4dc \uac1c\ubc1c \uac15\uc88c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/26644\/\",\"url\":\"https:\/\/atmokpo.com\/w\/26644\/\",\"name\":\"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, \uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800\ub780 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-10-27T10:53:35+00:00\",\"dateModified\":\"2024-11-26T07:34:50+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/26644\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/26644\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/26644\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, \uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800\ub780\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/atmokpo.com\/w\/#website\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/atmokpo.com\/w\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"contentUrl\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"width\":400,\"height\":400,\"caption\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\"},\"image\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/bebubo4\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\",\"name\":\"root\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"caption\":\"root\"},\"sameAs\":[\"http:\/\/atmokpo.com\/w\"],\"url\":\"https:\/\/atmokpo.com\/w\/author\/root\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, \uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800\ub780 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/atmokpo.com\/w\/26644\/","og_locale":"ko_KR","og_type":"article","og_title":"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, \uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800\ub780 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\uc548\ub155\ud558\uc138\uc694! \uc774\ubc88 \uae00\uc5d0\uc11c\ub294 \uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c\uc744 \uc704\ud55c \ud074\ub798\uc2a4\uc778 EntityManager\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800\ub294 JPA(Java Persistence API)\uc5d0\uc11c \uc911\uc694\ud55c \uc5ed\ud560\uc744 \ud558\uba70, \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc640\uc758 \uc0c1\ud638\uc791\uc6a9\uc744 \ub2e8\uc21c\ud654\ud574\uc90d\ub2c8\ub2e4. \uc774 \uae00\uc744 \ud1b5\ud574 \uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800\uc758 \uc815\uc758, \uae30\ub2a5, \uc0ac\uc6a9 \ubc29\ubc95, \uadf8\ub9ac\uace0 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\uc640\uc758 \ud1b5\ud569 \ubc29\ubc95\uc744 \uae4a\uc774 \uc788\uac8c \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. \uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800\ub780? \uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800\ub294 JPA\uc758 \ud575\uc2ec \uc778\ud130\ud398\uc774\uc2a4\ub85c, \uc5d4\ud2f0\ud2f0\uc758 \uc218\uba85 \uc8fc\uae30\ub97c \uad00\ub9ac\ud558\uace0 \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc758 CRUD(Create, &hellip; \ub354 \ubcf4\uae30 \"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, \uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800\ub780\"","og_url":"https:\/\/atmokpo.com\/w\/26644\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-10-27T10:53:35+00:00","article_modified_time":"2024-11-26T07:34:50+00:00","author":"root","twitter_card":"summary_large_image","twitter_creator":"@bebubo4","twitter_site":"@bebubo4","twitter_misc":{"\uae00\uc4f4\uc774":"root","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"1\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/26644\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/26644\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, \uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800\ub780","datePublished":"2024-10-27T10:53:35+00:00","dateModified":"2024-11-26T07:34:50+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/26644\/"},"wordCount":44,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc564\ub4dc \uac1c\ubc1c \uac15\uc88c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/26644\/","url":"https:\/\/atmokpo.com\/w\/26644\/","name":"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, \uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800\ub780 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-10-27T10:53:35+00:00","dateModified":"2024-11-26T07:34:50+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/26644\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/26644\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/26644\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ubc31\uc5d4\ub4dc \uac1c\ubc1c \uac15\uc88c, \uc5d4\ud2f0\ud2f0 \ub9e4\ub2c8\uc800\ub780"}]},{"@type":"WebSite","@id":"https:\/\/atmokpo.com\/w\/#website","url":"https:\/\/atmokpo.com\/w\/","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","description":"","publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/atmokpo.com\/w\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/atmokpo.com\/w\/#organization","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","url":"https:\/\/atmokpo.com\/w\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/","url":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","contentUrl":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","width":400,"height":400,"caption":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8"},"image":{"@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/bebubo4"]},{"@type":"Person","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7","name":"root","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","caption":"root"},"sameAs":["http:\/\/atmokpo.com\/w"],"url":"https:\/\/atmokpo.com\/w\/author\/root\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/26644","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/comments?post=26644"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/26644\/revisions"}],"predecessor-version":[{"id":26645,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/26644\/revisions\/26645"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=26644"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=26644"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=26644"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}