ricardo_murad: solve some hibernate issues