Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package br.com.soundcare.entity;
- import java.util.Calendar;
- import javax.persistence.Column;
- import javax.persistence.Entity;
- import javax.persistence.Id;
- import javax.persistence.ManyToOne;
- import javax.persistence.Table;
- import org.hibernate.annotations.CreationTimestamp;
- @Entity
- @Table(name="DECIBEL_TABLE")
- public class Decibel {
- @Id
- @Column(name="cd_decibel")
- private int cdDecibel;
- @ManyToOne
- @Column(name="cd_user")
- private Usuario usuario;
- @Column(name="db")
- private float db;
- @CreationTimestamp
- @Column(name="dt_decibel")
- private Calendar dataDecibel;
- public int getCdDecibel() {
- return cdDecibel;
- }
- public void setCdDecibel(int cdDecibel) {
- this.cdDecibel = cdDecibel;
- }
- public Usuario getUsuario() {
- return usuario;
- }
- public void setUsuario(Usuario usuario) {
- this.usuario = usuario;
- }
- public float getDb() {
- return db;
- }
- public void setDb(float db) {
- this.db = db;
- }
- public Calendar getDataDecibel() {
- return dataDecibel;
- }
- public void setDataDecibel(Calendar dataDecibel) {
- this.dataDecibel = dataDecibel;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement