Results 1 to 3 of 3

Thread: Error when i generate a converter for entity with composite pk

  1. #1
    Join Date
    Nov 2008
    Location
    Lima, Perú
    Posts
    14

    Default Error when i generate a converter for entity with composite pk

    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
    ================
    Ing. José Díaz Díaz
    Gerente General
    JOEDAYZ.COM
    Telef: (51) 987500273
    =================

  2. #2
    Join Date
    Jan 2010
    Location
    Mislata - Valencia - Spain
    Posts
    162

    Default

    This seems a bug, create an issue on JIRA: https://jira.springsource.org/browse/ROO
    Mario Martínez Sánchez
    Project Manager & Software Architect
    --------------------------
    Disid Technologies S.L.
    http://www.disid.com
    --------------------------
    gvNIX
    http://gvnix.googlecode.com
    http://www.gvnix.org

  3. #3
    Join Date
    Dec 2005
    Posts
    930

    Default

    There is already a ticket for this - ROO-2887
    Alan Stewart
    Spring Roo Committer
    twitter @alankstewart

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •