Added hibernate support.