Skip to content

Instantly share code, notes, and snippets.

@HashRaygoza
Last active October 19, 2017 22:40
Show Gist options
  • Save HashRaygoza/985db8a57a95fab982a194345206d067 to your computer and use it in GitHub Desktop.
Save HashRaygoza/985db8a57a95fab982a194345206d067 to your computer and use it in GitHub Desktop.
Clase VO que conecta con test.replica
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package mx.hashsoft.hibernateanotaciones;
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;
/**
*
* @author David
*/
@Entity
@Table(name = "test.replica")
public class ReplicaVO implements Serializable {
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column(name = "fecha")
@Temporal(TemporalType.TIMESTAMP)
private Date fecha;
@Column(name = "datos")
private String datos;
/**
* @return the id
*/
public Long getId() {
return id;
}
/**
* @param id the id to set
*/
public void setId(Long id) {
this.id = id;
}
/**
* @return the fecha
*/
public Date getFecha() {
return fecha;
}
/**
* @param fecha the fecha to set
*/
public void setFecha(Date fecha) {
this.fecha = fecha;
}
/**
* @return the datos
*/
public String getDatos() {
return datos;
}
/**
* @param datos the datos to set
*/
public void setDatos(String datos) {
this.datos = datos;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment