fixing issue where unique constraint can't identify the id field when its defined in a mappedsuperclass