code: protected Map<String, Object> prepareEntityResultMap(Entity entity) {
          final Map<String, Object> resultMap;
          final DBMeta dbmeta = entity.asDBMeta();
          if (dbmeta.hasPrimaryKey() && entity.hasPrimaryKeyValue()) { // mainly here
              resultMap = dbmeta.extractPrimaryKeyMap(entity);
          } else { // no PK table
              resultMap = prepareHashResultMap(entity.instanceHash());
          }
          return resultMap;
      }
docs: =============