shifted from hibernate 3 to 4