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 / JPA@Query.md
Last active November 29, 2020 04:34
Spring | Repository | JPA@query

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'")
@KeyCuevasMelgarejo
KeyCuevasMelgarejo / listar.md
Last active May 18, 2022 15:50
Spring | Thymeaf | th:each ~ th:if

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 / index.html
Created April 6, 2024 05:56
Sh's Piano 🎹
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Piano</title>
<link rel="stylesheet" href="style.css">
<script src="script.js" defer></script>
<link rel="shortcut icon" href="logo.png" type="image/x-icon">