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

Roo Service stopping Roo from scaffolding web mvc controllers

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 1.2.1.RELEASE
    • Fix Version/s: 1.2.2.RELEASE
    • Component/s: @ ROO SHELL, WEB MVC
    • Labels:
    • Environment:
      Roo 1.2.1 and STS 2.8.1, JDK 1.6.0_30 64bits, Windows 7 64bits.

      Description

      My Roo project has some entities and their web controllers, all Roo managed.
      I also have a Service, scaffolded from Roo, to do some cross-domain processing.
      The service method produces a non persistent entity called BookableRoom, summarizing the processing result. This entity is a fake JPA Active Record managed by Roo (please see suggestion).
      I also built a web controller BookableRoomController and views, scaffolded from Roo and then totally managed from me (no more @Roo annotations in it).

      Now the problem: I added some Roo managed new entities, but "web mvc all..." refuses to scaffold their web controllers and views, saying "Undo manage...", "Undo create..." about the controllers to be scaffolded.

      If I remove the autowired service from my BookableRoomController, then Roo scaffolds everything (even my existing BookableRoomController, which is right: I asked "all").

      How comes a service inside a controller affects other entities' controller scaffolding?
      Anyone experienced such behaviour?
      Is it right, and maybe I'm doing something wrong?
      Is the command execution a transaction, and the issue regarding the autowired service triggers a rollback? (undos)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              stewarta Alan Stewart
              Reporter:
              vitomeuli Vito Meuli
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: