Modified class metadata factory to have entity tables inherit indexes from mapped superclasses