[ROO-3640] Roo doesn't allow to create persistence configuration and entity model on different maven modules. Created: 14/Jul/15  Updated: 14/Mar/16

Status: Open
Project: Spring Roo
Component/s: None
Affects Version/s: 2.0.0.M1
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Juan Carlos García del Canto Assignee: Juan Carlos García del Canto
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relate
relates to ROO-3726 Improve multimodule project generation Resolved

 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.


Generated at Sun Nov 17 20:44:01 UTC 2019 using Jira 7.13.8#713008-sha1:1606a5c1e7006e1ab135aac81f7a9566b2dbc3a6.