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

Allow GWT Request to directly invoke JPA repository

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.2.0.M1
    • Fix Version/s: None
    • Component/s: GWT
    • Labels:
      None

      Description

      Execute the following script:

      project --topLevelPackage com.foo.roo2903
      jpa setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY 
      entity jpa --class ~.server.domain.Thing --activeRecord false
      field string --fieldName name
      repository jpa --interface ~.repository.ThingRepository --entity ~.server.domain.Thing
      
      web gwt setup
      web gwt all --proxyPackage ~.client.proxy --requestPackage ~.client.request

      The resultant app fails to compile, as the generated com.foo.roo2903.client.request.ThingRequest interface does not contain the necessary CRUD methods (in fact, that interface is empty):

      [ERROR] The method findThingEntries(int, int) is undefined for the type ThingRequest
      [ERROR] The method save(ThingProxy) is undefined for the type ThingRequest
      [ERROR] The method save(ThingProxy) is undefined for the type ThingRequest
      [ERROR] The method count() is undefined for the type ThingRequest
      [ERROR] The method delete(ThingProxy) is undefined for the type ThingRequest

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                stewarta Alan Stewart
              • Votes:
                5 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated: