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

Method signature changed on RE Entity

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 1.2.4.RELEASE
    • Component/s: @ CORE
    • Labels:
      None

      Description

      On en Entity created by Reverse Engineering create a new method like this:

       
      @RooJavaBean
      @RooJpaActiveRecord(versionField = "", table = "ProductesConveni", persistenceUnit = "persistenceUnitM", transactionManager = "transactionManager", 
                          finders = { "findProductesConvenisByCvnIdEquals", "findDuplicatedProductesConvenis" })
      @RooDbManaged(automaticallyDelete = true)
      @RooToString(excludeFields = { "cvnId" })
      public class ProductesConveni {
      
         // ...
          
          /**
          * 
          * Javadoc...
          * 
          */
          public static List<ProductesConveni> mapObjectsToProductesConvenis(List<Object[]> objects) {
              List<ProductesConveni> productesConvenis = new ArrayList<ProductesConveni>();
              for (Object[] object : objects) {
                  // ...
              }
              return productesConvenis;
          }
      
          // ...
      }
      

      Roo changes method signature to this:

       
      @RooJavaBean
      @RooJpaActiveRecord(versionField = "", table = "ProductesConveni", persistenceUnit = "persistenceUnitM", transactionManager = "transactionManager", 
                          finders = { "findProductesConvenisByCvnIdEquals", "findDuplicatedProductesConvenis" })
      @RooDbManaged(automaticallyDelete = true)
      @RooToString(excludeFields = { "cvnId" })
      public class ProductesConveni {
      
          // ...
      
          public static List<ProductesConveni> mapObjectsToProductesConvenis(List<Object> objects) {
              List<ProductesConveni> productesConvenis = new ArrayList<ProductesConveni>();
              for (Object[] object : objects) {
                  // ...
              }
              return productesConvenis;
          }
      
      }
      

      As you can see, the objects parameter has been changed from List<Object[]> to List<Object>. Also JavaDoc is missing.

      This seems to be related to problems solved on ROO-3341

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            jmvivo Jose Manuel Vivó ( Chema ) - DISID.
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: