Skip to content

Instantly share code, notes, and snippets.

View fernandosilva's full-sized avatar

Fernando fernandosilva

  • FFSistemas
  • Porto Alegre
View GitHub Profile
@fernandosilva
fernandosilva / gist:2490290dd72f73f48a2b
Created March 23, 2016 03:20
Listener do Hibernate
@PrePersist
public void whenInsert() {
data = new Date();
}
@PreUpdate
public void whenUpdate() {
data = new Date();
}