add support for hibernate