Added support to load entities with inheritance

The method "getDeclaredId" from EntityManager on line 123 can't get the
id attribute from a mapped super class.
This change only support InheritanceType.SINGLE_TABLE.