I don't know...
perhaps if you try to explain what you thinking is your needs, we can help you in some way.
The entityName is probably the best candidate for a discriminator (so true that it is used even in OO-DB).
The other possibility is a more simple info as a number.
Any other solution is to solve some problem with legacy DB.
Which is your need ?