Skip to content

Instantly share code, notes, and snippets.

@samuelsonbrito
Created December 21, 2014 14:37
Show Gist options
  • Save samuelsonbrito/00bf7eaee48c4e53d5fa to your computer and use it in GitHub Desktop.
Save samuelsonbrito/00bf7eaee48c4e53d5fa to your computer and use it in GitHub Desktop.
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
@Entity
public class Marca {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
private String descricao;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getDescricao() {
return descricao;
}
public void setDescricao(String descricao) {
this.descricao = descricao;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment