Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-3317

Error when i generate a converter for entity with composite pk

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 1.2.2.RELEASE
    • Fix Version/s: None
    • Component/s: JSF
    • Labels:

      Description

      The problem is in the method for example:

      public Object FiseUsuarioRolConverter.getAsObject(FacesContext context, UIComponent component, String value) {

      if(value==null || value.length()==0){

      return null;
      }

      FiseUsuarioRolPK id = value.toString(); --------> here is the problem (cannot convert of string to FiseUsuarioRolPK)
      return FiseUsuarioRol.findFiseUsuarioRol(id);

      }

      I am searching solve it problem by hours. Do you have some idea ?

      Jose

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              stewarta Alan Stewart
              Reporter:
              joedayz Jose Diaz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 2d
                  2d
                  Remaining:
                  Remaining Estimate - 2d
                  2d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified