Fixed versioning for join table inherited classes