Advertisement
Guest User

Untitled

a guest
Feb 28th, 2020
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.13 KB | None | 0 0
  1. package br.com.soundcare.entity;
  2.  
  3. import java.util.Calendar;
  4.  
  5. import javax.persistence.Column;
  6. import javax.persistence.Entity;
  7. import javax.persistence.Id;
  8. import javax.persistence.ManyToOne;
  9. import javax.persistence.Table;
  10.  
  11. import org.hibernate.annotations.CreationTimestamp;
  12.  
  13. @Entity
  14. @Table(name="DECIBEL_TABLE")
  15. public class Decibel {
  16.  
  17.     @Id
  18.     @Column(name="cd_decibel")
  19.     private int cdDecibel;
  20.    
  21.     @ManyToOne
  22.     @Column(name="cd_user")
  23.     private Usuario usuario;
  24.    
  25.     @Column(name="db")
  26.     private float db;
  27.    
  28.     @CreationTimestamp
  29.     @Column(name="dt_decibel")
  30.     private Calendar dataDecibel;
  31.    
  32.     public int getCdDecibel() {
  33.         return cdDecibel;
  34.     }
  35.  
  36.     public void setCdDecibel(int cdDecibel) {
  37.         this.cdDecibel = cdDecibel;
  38.     }
  39.  
  40.     public Usuario getUsuario() {
  41.         return usuario;
  42.     }
  43.  
  44.     public void setUsuario(Usuario usuario) {
  45.         this.usuario = usuario;
  46.     }
  47.  
  48.     public float getDb() {
  49.         return db;
  50.     }
  51.  
  52.     public void setDb(float db) {
  53.         this.db = db;
  54.     }
  55.  
  56.     public Calendar getDataDecibel() {
  57.         return dataDecibel;
  58.     }
  59.  
  60.     public void setDataDecibel(Calendar dataDecibel) {
  61.         this.dataDecibel = dataDecibel;
  62.     }  
  63.    
  64. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement