convert to hibernate