code: public static void generateBean(String cmd, String beanClassName) {
          Matcher joinSqlMatcher = joinSqlPattern.matcher(cmd);
          if (joinSqlMatcher.matches()) {
               Map<String,String> firstSet = getFields(joinSqlMatcher.group(1));
               Map<String,String> secondSet = null;
               Matcher sqlMatcher = sqlPattern.matcher(joinSqlMatcher.group(4));
               if (sqlMatcher.matches()) {
                  secondSet = getFields(sqlMatcher.group(1));
                  String joinField = joinSqlMatcher.group(5);
                  secondSet.remove(joinField);
                  firstSet.putAll(secondSet);
               }
               generate(firstSet, beanClassName);
          } else {
              Matcher sqlMatcher = sqlPattern.matcher(cmd);
              if (sqlMatcher.matches()) {
                  generate(getFields(sqlMatcher.group(1)), beanClassName);
              }
          }
      }
docs: TODO: Extend to generate package structure as well.