updating to hibernate 4