Simple support for Single Table Inheritance

Fix for creating abstract entity for base class.
Fix for missing discriminator value in database.
Limitation:
- cann't get list of revisions for parent entity
  class due problems with creating proper SELECT
  query and mapping entities to subclasses.