add hibernate base class