Added hibernate compatibilities.