Cayenne
  1. Cayenne
  2. CAY-1692

CayenneModeler - trimmed list of available Java data types

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 3.1B1
    • Fix Version/s: 3.1B1
    • Component/s: Modeler
    • Labels:
      None
    • Environment:
      OS X 10.6

      Description

      Noticed this in a trunk build - the list of available Java types for ObjAttribute is missing a bunch of types, including java.lang.String. This worked correctly in M3 (see 2 screenshots - M3 vs trunk)

      1. types2.png
        27 kB
        Andrus Adamchik
      2. types1.png
        31 kB
        Andrus Adamchik
      3. CAY-1692-v2.patch
        4 kB
        Andrei Veprev
      4. CAY-1692.patch
        3 kB
        Andrei Veprev

        Activity

        Hide
        Andrus Adamchik added a comment -

        Thanks! The last patch looks perfect.

        Show
        Andrus Adamchik added a comment - Thanks! The last patch looks perfect.
        Hide
        Andrei Veprev added a comment -

        Patch. All types that were in M3 are included and changed sorting a little for primitives.

        Show
        Andrei Veprev added a comment - Patch. All types that were in M3 are included and changed sorting a little for primitives.
        Hide
        Andrus Adamchik added a comment -

        The idea is correct. The list of types is not though. Let's follow the list that we have in M3

        Show
        Andrus Adamchik added a comment - The idea is correct. The list of types is not though. Let's follow the list that we have in M3
        Hide
        Andrei Veprev added a comment -

        Here is patch. I've moved registration for all type directly to ModelerUtils.getRegisteredTypeNames().

        Show
        Andrei Veprev added a comment - Here is patch. I've moved registration for all type directly to ModelerUtils.getRegisteredTypeNames().
        Hide
        Andrei Veprev added a comment -

        This problem relates to changes that have been done in CAY-1603. ModelerUtil.getRegisteredTypeNames() is used to build the completion list, and there ExtendedTypeMap.getRegisteredTypeNames() is used to get some types. ExtendedTypeMap has been changed in CAY-1603 and does't register any types now that expected to be in completion combo list.

        Show
        Andrei Veprev added a comment - This problem relates to changes that have been done in CAY-1603 . ModelerUtil.getRegisteredTypeNames() is used to build the completion list, and there ExtendedTypeMap.getRegisteredTypeNames() is used to get some types. ExtendedTypeMap has been changed in CAY-1603 and does't register any types now that expected to be in completion combo list.

          People

          • Assignee:
            Andrus Adamchik
            Reporter:
            Andrus Adamchik
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development