{"id":12578,"date":"2022-10-01T16:34:08","date_gmt":"2022-10-01T22:34:08","guid":{"rendered":"http:\/\/201.237.206.56\/Sitios\/ugit.siua.ac.cr\/?p=12578"},"modified":"2022-10-01T17:06:38","modified_gmt":"2022-10-01T23:06:38","slug":"java-jpa-mysql-conexion-crud","status":"publish","type":"post","link":"https:\/\/sada.services\/?p=12578","title":{"rendered":"Java: JPA MYSQL conexi\u00f3n CRUD"},"content":{"rendered":"\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube\"><div class=\"wp-block-embed__wrapper\">\n <iframe title=\"Aprende JPA En 30 Minutos - Java y MySQL\" width=\"1290\" height=\"726\" src=\"https:\/\/www.youtube.com\/embed\/dzOCS--ZrYg?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">MYSQL<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>Primero creamos BD de nombre bd_sis_crud_java_mysql<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"776\" height=\"347\" src=\"\/wp-content\/uploads\/2022\/10\/Seleccion_101.png\" alt=\"\" class=\"wp-image-12581\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2022\/10\/Seleccion_101.png 776w, https:\/\/sada.services\/wp-content\/uploads\/2022\/10\/Seleccion_101-300x134.png 300w, https:\/\/sada.services\/wp-content\/uploads\/2022\/10\/Seleccion_101-768x343.png 768w\" sizes=\"(max-width: 776px) 100vw, 776px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Y creamos una tabla llamada \u00abusuarios\u00bb con los siguientes campos <\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"172\" src=\"\/wp-content\/uploads\/2022\/10\/Seleccion_102-1024x172.png\" alt=\"\" class=\"wp-image-12582\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2022\/10\/Seleccion_102-1024x172.png 1024w, https:\/\/sada.services\/wp-content\/uploads\/2022\/10\/Seleccion_102-300x50.png 300w, https:\/\/sada.services\/wp-content\/uploads\/2022\/10\/Seleccion_102-768x129.png 768w, https:\/\/sada.services\/wp-content\/uploads\/2022\/10\/Seleccion_102.png 1491w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Le agregamos campos de prueba<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"446\" height=\"105\" src=\"\/wp-content\/uploads\/2022\/10\/Seleccion_103.png\" alt=\"\" class=\"wp-image-12585\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2022\/10\/Seleccion_103.png 446w, https:\/\/sada.services\/wp-content\/uploads\/2022\/10\/Seleccion_103-300x71.png 300w\" sizes=\"(max-width: 446px) 100vw, 446px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Descargamos el conector de java con MYSQL <\/li><li><a rel=\"noreferrer noopener\" href=\"https:\/\/mvnrepository.com\/artifact\/mysql\/mysql-connector-java\/8.0.21\" target=\"_blank\">https:\/\/mvnrepository.com\/artifact\/mysql\/mysql-connector-java\/8.0.21<\/a><\/li><\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Netbeans<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>Instalamos <\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo snap install netbeans --classic<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Creamos un nuevo proyecto de consola llamado CRUD de tipo Java Aplication<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"736\" height=\"527\" src=\"\/wp-content\/uploads\/2022\/10\/Seleccion_104.png\" alt=\"\" class=\"wp-image-12587\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2022\/10\/Seleccion_104.png 736w, https:\/\/sada.services\/wp-content\/uploads\/2022\/10\/Seleccion_104-300x215.png 300w\" sizes=\"(max-width: 736px) 100vw, 736px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"777\" height=\"535\" src=\"\/wp-content\/uploads\/2022\/10\/Seleccion_105.png\" alt=\"\" class=\"wp-image-12589\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2022\/10\/Seleccion_105.png 777w, https:\/\/sada.services\/wp-content\/uploads\/2022\/10\/Seleccion_105-300x207.png 300w, https:\/\/sada.services\/wp-content\/uploads\/2022\/10\/Seleccion_105-768x529.png 768w\" sizes=\"(max-width: 777px) 100vw, 777px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>MYSQL Primero creamos BD de nombre bd_sis_crud_java_mysql Y creamos una tabla llamada \u00abusuarios\u00bb con los siguientes campos Le agregamos campos de prueba Descargamos el conector de java con MYSQL https:\/\/mvnrepository.com\/artifact\/mysql\/mysql-connector-java\/8.0.21 Netbeans Instalamos Creamos un nuevo proyecto de consola llamado CRUD de tipo Java Aplication<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[431],"tags":[438,417,439,49],"class_list":["post-12578","post","type-post","status-publish","format-standard","hentry","category-java","tag-crud","tag-java","tag-jpa","tag-mysql"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts\/12578","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12578"}],"version-history":[{"count":6,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts\/12578\/revisions"}],"predecessor-version":[{"id":12591,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts\/12578\/revisions\/12591"}],"wp:attachment":[{"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12578"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12578"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12578"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}