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

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 1.2.2.RELEASE
    • None
    • JSF

    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

              stewarta Alan Stewart
              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