added hibernate-part of assignment