Added Media entity and added hibernate dependency.