map inheritance to hibernate