Skip to content

Instantly share code, notes, and snippets.

View lazaropj's full-sized avatar
🏠
Working from home

Lazaro Jr lazaropj

🏠
Working from home
View GitHub Profile
@lazaropj
lazaropj / livraria.sql
Created April 26, 2017 18:17 — forked from deusmar/livraria.sql
Correção de datas com dia 0 (zero)
This file has been truncated, but you can view the full file.
create table livros (
id integer primary key auto_increment not null,
nome varchar(100) not null,
data_de_lancamento date not null,
autor_id integer not null,
preco decimal(10,2) not null
);
create table autores (
id integer primary key auto_increment not null,
nome varchar(100) not null
@lazaropj
lazaropj / EsId.java
Created August 20, 2016 16:44 — forked from strokine/EsId.java
Utility to populate data from ElasticSearch results to POJO and from POJO to ElasticSearch Source for indexing
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface EsId {
}