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

Roo doesn't allow to create persistence configuration and entity model on different maven modules.

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0.0.M1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Create a project with the following structure:

      project setup --topLevelPackage org.springsource.multimodule.test
      module create --moduleName controllers --topLevelPackage org.springsource.multimodule.test
      module focus --moduleName ~
      module create --moduleName service-api --topLevelPackage org.springsource.multimodule.test
      module focus --moduleName ~
      module create --moduleName service-impl --topLevelPackage org.springsource.multimodule.test
      module focus --moduleName ~
      module create --moduleName model --topLevelPackage org.springsource.multimodule.test
      module focus --moduleName ~
      module create --moduleName repository --topLevelPackage org.springsource.multimodule.test
      module focus --moduleName ~
      

      Configure jpa persistence on "repository" module using the following commands:

      module focus --moduleName repository 
      persistence setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY
      

      Change to "model" module and try to create an entity:

      module focus --moduleName model
      entity jpa --class MyEntity
      

      Appears the following error:

      Command 'entity jpa' was found but is not currently available (type 'help' then ENTER to learn about this command)
      

      Roo doesn't allow to create persistence configuration and entity model on different maven modules.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jcgarcia Juan Carlos García del Canto
                Reporter:
                jcgarcia Juan Carlos García del Canto
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: