Skip to content

Instantly share code, notes, and snippets.

View KeyCuevasMelgarejo's full-sized avatar
🎯
Focusing

Key Cuevas Melgarejo KeyCuevasMelgarejo

🎯
Focusing
View GitHub Profile
@KeyCuevasMelgarejo
KeyCuevasMelgarejo / listar.md
Last active May 18, 2022 15:50
Spring | Thymeaf | th:each ~ th:if
View listar.md

Listar items segun su disponibilidad | Ejemplo

<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
<head th:replace = "layout/plantilla :: head"></head>

<body class="">
    <div class="wrapper">
        <!--  Sidebar -->
@KeyCuevasMelgarejo
KeyCuevasMelgarejo / JPA@Query.md
Last active November 29, 2020 04:34
Spring | Repository | JPA@query
View JPA@Query.md

Repository JPA @query | Ejemplo

	@Query(value = "SELECT Max(id_horario) FROM Horario")
	Integer findByHorario_IdHorario();
	
	@Query(value = "SELECT h FROM Horario h where h.estado_registro='PENDIENTE'")
	List<Horario> findByEstado();
	
	@Query(value = "SELECT h FROM Horario h where h.estado_registro='COMPLETADO'")