Created
June 6, 2015 19:50
-
-
Save victorximenis/f25a66e3b54502dae5e6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package br.unipe.dsw.entity; | |
import java.io.Serializable; | |
import javax.persistence.Entity; | |
import javax.persistence.GeneratedValue; | |
import javax.persistence.GenerationType; | |
import javax.persistence.Id; | |
import javax.persistence.ManyToOne; | |
@Entity | |
public class Quarto implements Serializable{ | |
/** | |
* | |
*/ | |
private static final long serialVersionUID = 1L; | |
@Id | |
@GeneratedValue(strategy = GenerationType.AUTO) | |
private Long id; | |
private String numero; | |
private int andar; | |
@ManyToOne | |
private Categoria categoria; | |
public Quarto(long id) { | |
super(); | |
this.id = id; | |
} | |
public Quarto() { | |
super(); | |
} | |
public Categoria getCategoria() { | |
return categoria; | |
} | |
public void setCategoria(Categoria categoria) { | |
this.categoria = categoria; | |
} | |
public Long getId() { | |
return id; | |
} | |
public void setId(Long id) { | |
this.id = id; | |
} | |
public String getNumero() { | |
return numero; | |
} | |
public void setNumero(String numero) { | |
this.numero = numero; | |
} | |
public int getAndar() { | |
return andar; | |
} | |
public void setAndar(int andar) { | |
this.andar = andar; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment