update to hibernate 4