updated to hibernate4