We made it a Bed object. Agree that it should have ideally have it through hibernate mapping. I think we need to refactor this whenever anyone gets to work on this again.