Created
December 30, 2016 19:38
-
-
Save netodevel/81e185a83e00158615b86cd4a8a7b279 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example; | |
import java.io.Serializable; | |
import java.util.Date; | |
import javax.persistence.Column; | |
import javax.persistence.Entity; | |
import javax.persistence.GeneratedValue; | |
import javax.persistence.GenerationType; | |
import javax.persistence.Id; | |
import javax.persistence.Table; | |
import javax.persistence.Temporal; | |
import javax.persistence.TemporalType; | |
import org.springframework.format.annotation.DateTimeFormat; | |
@Entity | |
@Table(name = "salarios_minimos") | |
public class SalarioMinimo implements Serializable { | |
private static final long serialVersionUID = 1L; | |
@Id | |
@GeneratedValue(strategy = GenerationType.AUTO) | |
private Integer id; | |
private String estado; | |
private String salario; | |
@Column(name = "data_inicio") | |
@Temporal(TemporalType.DATE) | |
@DateTimeFormat(pattern = "dd/MM/yyyy") | |
private Date dataInicio; | |
@Column(name = "data_fim") | |
@Temporal(TemporalType.DATE) | |
@DateTimeFormat(pattern = "dd/MM/yyyy") | |
private Date dataFim; | |
private String decreto; | |
public SalarioMinimo(){ | |
} | |
public SalarioMinimo(String estado, String salario, Date dataInicio, Date dataFim, String decreto) { | |
super(); | |
this.estado = estado; | |
this.salario = salario; | |
this.dataInicio = dataInicio; | |
this.dataFim = dataFim; | |
this.decreto = decreto; | |
} | |
public String getEstado() { | |
return estado; | |
} | |
public void setEstado(String estado) { | |
this.estado = estado; | |
} | |
public String getSalario() { | |
return salario; | |
} | |
public void setSalario(String salario) { | |
this.salario = salario; | |
} | |
public Date getDataInicio() { | |
return dataInicio; | |
} | |
public void setDataInicio(Date dataInicio) { | |
this.dataInicio = dataInicio; | |
} | |
public Date getDataFim() { | |
return dataFim; | |
} | |
public void setDataFim(Date dataFim) { | |
this.dataFim = dataFim; | |
} | |
public String getDecreto() { | |
return decreto; | |
} | |
public void setDecreto(String decreto) { | |
this.decreto = decreto; | |
} | |
public Integer getId() { | |
return id; | |
} | |
public void setId(Integer id) { | |
this.id = id; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment