code: @Override
      public EnhanceEntity findById(Object primaryKey, EntityMetadata m, Client client)
      {
          List<String> relationNames = m.getRelationNames();
          if (relationNames != null && !relationNames.isEmpty())
          {
              Set<String> keys = new HashSet<String>(1);
              keys.add(primaryKey.toString());
              String query = getSqlQueryFromJPA(m, relationNames, keys);
              List<EnhanceEntity> results = populateEnhanceEntities(m, relationNames, client, query);
              return results != null && !results.isEmpty() ? results.get(0) : null;
          }
          else
          {
              Object o;
              try
              {
                  o = client.find(m.getEntityClazz(), primaryKey);
              }
              catch (Exception e)
              {
                  throw new PersistenceException(e);
              }
              return o != null ? new EnhanceEntity(o, getId(o, m), null) : null;
          }
  
          // return super.findById(primaryKey, m, client);
      }
docs: /*
  (non-Javadoc)
  
  @see
  com.impetus.kundera.persistence.EntityReader#findById(java.lang.Object,
  com.impetus.kundera.metadata.model.EntityMetadata, java.util.List,
  com.impetus.kundera.client.Client)