nosi.webapps.igrp.dao.Historic Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of igrp-core Show documentation
Show all versions of igrp-core Show documentation
IGRP Framework is a powerful and highly customizable platform developed by the Operational Nucleus for the Information Society (NOSi) to create web applications, it provides out of box, several modules to make easy to create stand-alone, production-grade web applications: authentication and access-control, business processes automation, reporting, page builder with automatic code generation and incorporation of the Once-Only-Principle, written in Java. IGRP Framework WAR - Contains some keys resources that give UI to IGRP Framework and others supports files.
package nosi.webapps.igrp.dao;
/*
@author: Rodney Fernandes
* 10 Fev 2021
*/
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ForeignKey;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.CreationTimestamp;
import java.time.LocalDateTime;
@Entity
@Table(name = "tbl_historic")
public class Historic extends IGRPBaseActiveRecord implements Serializable {
private static final long serialVersionUID = -1366720109128763696L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
@Column(nullable = false)
private String nome;
@Column
private Integer idUtilizador;
@CreationTimestamp
private LocalDateTime data;
@ManyToOne
@JoinColumn(name = "page_fk", foreignKey = @ForeignKey(name = "PAGE_FK"), nullable = false)
private Action page;
@Column
private String comentario;
@Column(nullable = false)
private String descricao;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getNome() {
return nome;
}
public void setNome(String nome) {
this.nome = nome;
}
public String getDescricao() {
return descricao;
}
public void setDescricao(String descricao) {
this.descricao = descricao;
}
public void setComentario(String comentario) {
this.comentario = comentario;
}
public String getComentario() {
return comentario;
}
public Integer getIdUtilizador() {
return idUtilizador;
}
public void setIdUtilizador(Integer idUtilizador) {
this.idUtilizador = idUtilizador;
}
public Action getPage() {
return page;
}
public void setPage(Action page) {
this.page = page;
}
public LocalDateTime getData() {
return this.data;
}
}