code: public <T> T gett(Class<T> targetClass, long id, Collection<String> selectPropNames) throws DuplicatedResultException {
          final Condition whereClause = L.eq(ID, id);
          final List<T> entities = list(targetClass, selectPropNames, whereClause, null, 0, 2);
  
          if (entities.size() > 1) {
              throw new DuplicatedResultException("More than one records found by condition: " + whereClause.toString());
          }
  
          return (entities.size() > 0) ? entities.get(0) : null;
      }
docs: Find the entity from table specified by simple class name of the <code>targetClass</code> by the specified <code>id</code>
  
  @param targetClass
  @param id
  @param selectPropNames
  @return
  @throws DuplicatedResultException if more than one records are found.