[hibernate-dev] object is not an instance of declaring class