Mapping classes to hibernate