@Entity public class Room extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
private Floor |
floor |
private int |
number |
private Guest |
occupant |
private static long |
serialVersionUID |
Modifier and Type | Method and Description |
---|---|
Floor |
getFloor() |
int |
getNumber() |
Guest |
getOccupant() |
void |
setOccupant(Guest occupant) |
String |
toString() |
private static final long serialVersionUID
private int number
private Floor floor
private Guest occupant
public Room()
public Room(Floor floor, int number)
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.