Created
June 6, 2015 19:43
-
-
Save victorximenis/479293969303944ff68d to your computer and use it in GitHub Desktop.
This file contains 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 java.util.List; | |
import javax.persistence.Entity; | |
import javax.persistence.OneToMany; | |
@Entity | |
public class Hospede extends Pessoa implements Serializable{ | |
/** | |
* | |
*/ | |
private static final long serialVersionUID = 1L; | |
@OneToMany(mappedBy="hospede") | |
private List<Reserva> reservas; | |
public List<Reserva> getReservas() { | |
return reservas; | |
} | |
public void setReservas(List<Reserva> reservas) { | |
this.reservas = reservas; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment