Uploaded image for project: 'PUBLIC - Liferay IDE'
  1. PUBLIC - Liferay IDE
  2. IDE-3034

more columns types need to support

    Details

    • Type: Story
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1 M1
    • Fix Version/s: 3.6.1
    • Labels:
      None

      Description

      according to portal code:
      public String getSqlType(String model, String field, String type) {
      if (type.equals("boolean") || type.equals("Boolean"))

      { return "BOOLEAN"; }

      else if (type.equals("double") || type.equals("Double"))

      { return "DOUBLE"; }

      else if (type.equals("float") || type.equals("Float"))

      { return "FLOAT"; }

      else if (type.equals("int") || type.equals("Integer"))

      { return "INTEGER"; }
      else if (type.equals("long") || type.equals("Long")) { return "BIGINT"; }
      else if (type.equals("short") || type.equals("Short")) { return "INTEGER"; }

      else if (type.equals("Blob"))

      { return "BLOB"; }

      else if (type.equals("Date"))

      { return "TIMESTAMP"; }

      else if (type.equals("Map"))

      { return "CLOB"; }

      else if (type.equals("String")) {
      int maxLength = getMaxLength(model, field);

      if (maxLength == 2000000)

      { return "CLOB"; }

      return "VARCHAR";
      }
      else

      { return null; }

      }

        Attachments

          Activity

            People

            • Assignee:
              terry.jia Terry Jia
              Reporter:
              terry.jia Terry Jia
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 1 day ago

                Packages

                Version Package
                3.6.1