{"id":15194,"date":"2023-06-21T10:52:02","date_gmt":"2023-06-21T16:52:02","guid":{"rendered":"http:\/\/201.237.206.56\/Sitios\/ugit.siua.ac.cr\/?p=15194"},"modified":"2023-06-21T10:52:02","modified_gmt":"2023-06-21T16:52:02","slug":"sigesa-jpa-especificacion-equal-para-campo-de-un-hijo","status":"publish","type":"post","link":"https:\/\/sada.services\/?p=15194","title":{"rendered":"SIGESA: JPA Especificaci\u00f3n equal para campo de un hijo"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>public static Specification&lt;EvaluacionOperativa> codigoPlanLike(final String busqueda) {\n        return new Specification&lt;EvaluacionOperativa>() {\n            @Override\n            public Predicate toPredicate(Root&lt;EvaluacionOperativa> root, CriteriaQuery&lt;?> cq, CriteriaBuilder cb) {\n                Expression x = root.join(\"planOperativo\").get(\"codigo\");\n                Expression y = cb.literal(\"%\" + busqueda + \"%\");\n                return cb.like(cb.upper(x), cb.upper(y));\n            }\n        };\n    }<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>La clave esta en esta linea<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>Expression x = root.join(\"planOperativo\").get(\"codigo\");<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[443],"tags":[517,518,439,444],"class_list":["post-15194","post","type-post","status-publish","format-standard","hentry","category-sigesa","tag-equal","tag-hijo","tag-jpa","tag-sigesa"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6}},"_links":{"self":[{"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts\/15194","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=15194"}],"version-history":[{"count":1,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts\/15194\/revisions"}],"predecessor-version":[{"id":15195,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts\/15194\/revisions\/15195"}],"wp:attachment":[{"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=15194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=15194"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=15194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}