public Class<?> lookupEntityClass(Class<?> objClass){
  for (Class<?> cls=objClass; cls != null; cls=cls.getSuperclass()) {
    if (entityBindings.containsKey(cls) || cls.isAnnotationPresent(Entity.class)) {
      return cls;
    }
  }
  throw new IllegalArgumentException("Unknown Entity " + objClass);
}

public Class < ? > lookupEntityClass ( Class < ? > objClass ) { for ( Class < ? > cls = objClass ; cls != null ; cls = cls . getSuperclass ( ) ) { if ( entityBindings . containsKey ( cls ) || cls . isAnnotationPresent ( Entity . class ) ) { return cls ; } } throw new IllegalArgumentException ( "Unknown Entity " + objClass ) ; }
follow for this class or super - class for entity annotation .
