Spring Roo
  1. Spring Roo
  2. ROO-3010

Service aspects not created when services are in different module to entities and repositories

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Works as Designed
    • Affects Version/s: 1.2.0.RELEASE
    • Fix Version/s: None
    • Component/s: PERSISTENCE
    • Labels:
    • Environment:
      ubuntu 11.04

      Description

      Roo does not create the two service ITDs when a service is created in a different Maven module to the one containing the reverse-engineered JPA entities and their repositories.

      For example with these three modules:

      • web module
      • service module (containing service)
      • persistence module (containing JPA entities and repositories)

      ... Roo only creates these service-related files:

      • Service.java
      • ServiceImpl.java

      But with these two modules:

      • web module
      • service & persistence module (containing service, JPA entities, and JPA repositories)

      ... Roo correctly creates:

      • Service.java
      • ServiceImpl.java
      • Service_Roo_Service.aj
      • ServiceImpl_Roo_Service.aj

      Here are the relevant scripts:

      Two module script
      project --topLevelPackage uk.co.stub.multiModuleTwoTeir --packaging POM
      module create --moduleName Web --topLevelPackage ~.web
      module focus --moduleName ~
      module create --moduleName ServicePersistence --topLevelPackage ~.ServicePersistence
      persistence setup --provider HIBERNATE --database MYSQL --databaseName test10 --hostName localhost --userName BILBO --password BAGGINS
      database reverse engineer --schema test10 --activeRecord false --includeTables "Plan GAddress HPAverage HPQTAround Houseprice" --package ~.domain --testAutomatically true
      repository jpa --interface ~.Repos.Houseprice --entity ~.domain.Houseprice
      repository jpa --interface ~.Repos.Hpaverage --entity ~.domain.Hpaverage
      repository jpa --interface ~.Repos.Hpqtaround --entity ~.domain.Hpqtaround
      service --entity ~.domain.Houseprice --interface ~.service.HousepriceService
      service --entity ~.domain.Hpaverage --interface ~.service.HpaverageService
      service --entity ~.domain.Hpqtaround --interface ~.service.HpqtaroundService
      Three module script
      project --topLevelPackage uk.co.stub.MultiModuleThreeTeir --packaging POM
      module create --moduleName Web --topLevelPackage ~.web
      module focus --moduleName ~
      module create --moduleName Service --topLevelPackage ~.Service
      module focus --moduleName ~
      module create --moduleName Persistence --topLevelPackage ~.Persistence
      persistence setup --provider HIBERNATE --database MYSQL --databaseName test10 --hostName localhost --userName BILBO --password BAGGINS
      database reverse engineer --schema test10 --activeRecord false --includeTables "Plan GAddress HPAverage HPQTAround Houseprice" --package ~.domain --testAutomatically true
      repository jpa --interface ~.Repos.Houseprice --entity ~.domain.Houseprice
      repository jpa --interface ~.Repos.Hpaverage --entity ~.domain.Hpaverage
      repository jpa --interface ~.Repos.Hpqtaround --entity ~.domain.Hpqtaround
      module focus --moduleName Service
      service --entity ~.domain.Houseprice --interface ~.service.HousepriceService
      service --entity ~.domain.Hpaverage --interface ~.service.HpaverageService
      service --entity ~.domain.Hpqtaround --interface ~.service.HpqtaroundService

        Activity

        Hide
        Alan Stewart added a comment -

        Please also attach the two-module project

        Show
        Alan Stewart added a comment - Please also attach the two-module project
        Hide
        stub added a comment -

        Hi, Just uploaded the two-module project.

        Show
        stub added a comment - Hi, Just uploaded the two-module project.
        Hide
        Andrew Swan added a comment - - edited

        Revision 40d73a11a76ab40aa58b3a88caf1205546ba4410 fixes several cases of focusing on the wrong module and type. Please retest your three-module scenario with this revision or later, and let me know if it works.

        Show
        Andrew Swan added a comment - - edited Revision 40d73a11a76ab40aa58b3a88caf1205546ba4410 fixes several cases of focusing on the wrong module and type. Please retest your three-module scenario with this revision or later, and let me know if it works.
        Hide
        stub added a comment -

        Just to confirm have tested 3 teir with latest nightly snapshot and same happens. No itd for services are created.

        Show
        stub added a comment - Just to confirm have tested 3 teir with latest nightly snapshot and same happens. No itd for services are created.
        Hide
        Andrew Swan added a comment -

        These three lines in your script are wrong:

        service --entity ~.domain.Houseprice --interface ~.service.HousepriceService
        service --entity ~.domain.Hpaverage --interface ~.service.HpaverageService
        service --entity ~.domain.Hpqtaround --interface ~.service.HpqtaroundService

        You need to qualify the entities with the name of the module that contains them (because they're not in the currently focused module), like this:

        service --entity Persistence|~.domain.Houseprice --interface ~.service.HousepriceService
        service --entity Persistence|~.domain.Hpaverage --interface ~.service.HpaverageService
        service --entity Persistence|~.domain.Hpqtaround --interface ~.service.HpqtaroundService

        I've tested that change and it works:

        project --topLevelPackage uk.co.stub.MultiModuleThreeTeir --packaging POM
        Created ROOT/pom.xml
        module create --moduleName Web --topLevelPackage ~.web
        Created ROOT/Web
        Created ROOT/Web/pom.xml                                                                         Created uk.co.stub.multimodulethreeteir.persistence.domain.Plan
        Created Web|SPRING_CONFIG_ROOT
        Created Web|SPRING_CONFIG_ROOT/applicationContext.xml
        Updated ROOT/pom.xml [added module Web]
        module focus --moduleName ~
        module create --moduleName Service --topLevelPackage ~.Service
        Created ROOT/Service
        Created ROOT/Service/pom.xml
        Created Service|SPRING_CONFIG_ROOT
        Created Service|SPRING_CONFIG_ROOT/applicationContext.xml
        Updated ROOT/pom.xml [added module Service]
        module focus --moduleName ~
        module create --moduleName Persistence --topLevelPackage ~.Persistence
        Created ROOT/Persistence
        Created ROOT/Persistence/pom.xml
        Created Persistence|SPRING_CONFIG_ROOT                                                           Created uk.co.stub.multimodulethreeteir.persistence.domain.Plan
        Created Persistence|SPRING_CONFIG_ROOT/applicationContext.xml
        Updated ROOT/pom.xml [added module Persistence]
        persistence setup --provider HIBERNATE --database MYSQL --databaseName test10 --hostName localhost --userName BILBO --password BAGGINS
        Created Persistence|SPRING_CONFIG_ROOT/database.properties
        Please update your database details in src/main/resources/META-INF/spring/database.properties.
        Updated Persistence|SPRING_CONFIG_ROOT/applicationContext.xml
        Created Persistence|SRC_MAIN_RESOURCES/META-INF/persistence.xml
        Updated Persistence|ROOT/pom.xml [added dependencies mysql:mysql-connector-java:5.1.18, org.hibernate:hibernate-core:3.6.8.Final, org.hibernate:hibernate-entitymanager:3.6.8.Final, org.hibernate.javax.persistence:hibernate-jpa-2.0-api:1.0.1.Final, org.hibernate:hibernate-validator:4.2.0.Final, javax.validation:validation-api:1.0.0.GA, cglib:cglib-nodep:2.2.2, javax.transaction:jta:1.1, org.springframework:spring-jdbc:${spring.version}, org.springframework:spring-orm:${spring.version}, commons-pool:commons-pool:1.5.6, commons-dbcp:commons-dbcp:1.3]
        database reverse engineer --schema test10 --activeRecord false --includeTables "Plan GAddress HPAverage HPQTAround Houseprice" --package ~.domain --testAutomatically true                                                                                       Created uk.co.stub.multimodulethreeteir.persistence.domain.Plan
        Created Persistence|SRC_MAIN_RESOURCES/dbre.xml
        Updated Persistence|ROOT/pom.xml
        Updated Persistence|SRC_MAIN_RESOURCES/META-INF/persistence.xml
        Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain
        Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/Gaddress.javCreated uk.co.stub.multimodulethreeteir.persistence.domain.Plan
        Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/Hpaverage.java
        Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/Hpqtaround.java
        Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/Houseprice.java
        Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/Plan.java
        Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain
        Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/GaddressDataOnDemand.java
        Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/GaddressIntegrationTest.java
        Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/HpaverageDataOnDemand.java
        Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/HpaverageIntegrationTest.java
        Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/HpqtaroundDaCreated uk.co.stub.multimodulethreeteir.persistence.domain.Plan
        Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/HpqtaroundIntegrationTest.java
        Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/HousepriceDataOnDemand.java
        Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/HousepriceIntegrationTest.java
        Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/PlanDataOnDemand.java
        Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/PlanIntegrationTest.java
        Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/Gaddress_Roo_ToString.aj
        Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/Gaddress_Roo_Jpa_Entity.aj
        Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/Gaddress_Roo_DbManaged.aj
        Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/Hpaverage_Roo_ToString.aj
        Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/Hpaverage_RoCreated uk.co.stub.multimodulethreeteir.persistence.domain.Plan
        Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/Hpaverage_Roo_DbManaged.aj
        Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/Hpqtaround_Roo_ToString.aj
        Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/Hpqtaround_R
        Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/Hpqtaround_Roo_DbManaged.aj
        Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/Houseprice_Roo_ToString.aj
        Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/Houseprice_Roo_Jpa_Entity.aj
        Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/Houseprice_Roo_DbManaged.aj
        Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/Plan_Roo_ToString.aj
        Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/Plan_Roo_Jpa_Entity.aj
        Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/Plan_Roo_DbManaged.aj
        Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/HpqtaroundDataOnDemand_Roo_Configurable.aj
        Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/HpqtaroundIntegrationTest_Roo_Configurable.aj
        Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/HousepriceDataOnDemand_Roo_Configurable.aj
        Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/GaddressDataOnDemand_Roo_Configurable.aj
        Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/HpaverageDataOnDemand_Roo_Configurable.aj
        Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/GaddressIntegrationTest_Roo_Configurable.aj
        Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/HousepriceIntegrationTest_Roo_Configurable.aj
        Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/PlanDataOnDemand_Roo_Configurable.aj
        Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/HpaverageIntegrationTest_Roo_Configurable.aj
        Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/d               [org.apache.felix.framework [0]] FrameworkEvent STARTLEVEL CHANGED
        repository jpa --interface ~.Repos.Houseprice --entity ~.domain.Housepric              [org.springframework.roo.process.manager [61]] ServiceEvent UNREGISTERING
        Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/                                                 Downloaded 100% of roobot.xml.zip
        Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/repos/Houseprice.java
        Created Persistence|SPRING_CONFIG_ROOT/applicationContext-jpa.xml
        Updated Persistence|ROOT/pom.xml [added dependency org.springframework.data:spring-data-jpa:1.0.2.RELEASE]
        Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/repos/Houseprice_Roo_Jpa_Repository.aj
        repository jpa --interface ~.Repos.Hpaverage --entity ~.domain.Hpaverage
        Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/repos/Hpaverage.java
        Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/repos/Hpaverage_Roo_Jpa_Repository.aj
        repository jpa --interface ~.Repos.Hpqtaround --entity ~.domain.Hpqtaround
        Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/repos/Hpqtaround.java
        Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/repos/Hpqtaround_Roo_Jpa_Repository.aj
        module focus --moduleName Service
        service --entity Persistence|~.domain.Houseprice --interface ~.service.HousepriceService
        Created Service|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/service/service
        Created Service|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/service/service/HousepriceService.java
        Created Service|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/service/service/HousepriceServiceImpl.java
        Updated Service|ROOT/pom.xml [added dependency uk.co.stub.multimodulethreeteir.persistence:Persistence:0.1.0.BUILD-SNAPSHOT;]
        Created Service|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/service/service/HousepriceService_Roo_Service.aj
        Created Service|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/service/service/HousepriceServiceImpl_Roo_Service.aj
        service --entity Persistence|~.domain.Hpaverage --interface ~.service.HpaverageService
        Created Service|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/service/service/HpaverageService.java
        Created Service|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/service/service/HpaverageServiceImpl.java
        Created Service|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/service/service/HpaverageService_Roo_Service.aj
        Created Service|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/service/service/HpaverageServiceImpl_Roo_Service.aj
        service --entity Persistence|~.domain.Hpqtaround --interface ~.service.HpqtaroundService
        Created Service|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/service/service/HpqtaroundService.java
        Created Service|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/service/service/HpqtaroundServiceImpl.java
        Created Service|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/service/service/HpqtaroundService_Roo_Service.aj
        Created Service|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/service/service/HpqtaroundServiceImpl_Roo_Service.aj
        Script required 3.229 seconds to execute
        Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/HpqtaroundDataOnDemand_Roo_DataOnDemand.aj
        Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/HpqtaroundIntegrationTest_Roo_IntegrationTest.aj
        Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/HpaverageDataOnDemand_Roo_DataOnDemand.aj
        Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/HpaverageIntegrationTest_Roo_IntegrationTest.aj
        Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/HousepriceDataOnDemand_Roo_DataOnDemand.aj
        Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/HousepriceIntegrationTest_Roo_IntegrationTest.aj
        Show
        Andrew Swan added a comment - These three lines in your script are wrong: service --entity ~.domain.Houseprice -- interface ~.service.HousepriceService service --entity ~.domain.Hpaverage -- interface ~.service.HpaverageService service --entity ~.domain.Hpqtaround -- interface ~.service.HpqtaroundService You need to qualify the entities with the name of the module that contains them (because they're not in the currently focused module), like this: service --entity Persistence|~.domain.Houseprice -- interface ~.service.HousepriceService service --entity Persistence|~.domain.Hpaverage -- interface ~.service.HpaverageService service --entity Persistence|~.domain.Hpqtaround -- interface ~.service.HpqtaroundService I've tested that change and it works: project --topLevelPackage uk.co.stub.MultiModuleThreeTeir --packaging POM Created ROOT/pom.xml module create --moduleName Web --topLevelPackage ~.web Created ROOT/Web Created ROOT/Web/pom.xml Created uk.co.stub.multimodulethreeteir.persistence.domain.Plan Created Web|SPRING_CONFIG_ROOT Created Web|SPRING_CONFIG_ROOT/applicationContext.xml Updated ROOT/pom.xml [added module Web] module focus --moduleName ~ module create --moduleName Service --topLevelPackage ~.Service Created ROOT/Service Created ROOT/Service/pom.xml Created Service|SPRING_CONFIG_ROOT Created Service|SPRING_CONFIG_ROOT/applicationContext.xml Updated ROOT/pom.xml [added module Service] module focus --moduleName ~ module create --moduleName Persistence --topLevelPackage ~.Persistence Created ROOT/Persistence Created ROOT/Persistence/pom.xml Created Persistence|SPRING_CONFIG_ROOT Created uk.co.stub.multimodulethreeteir.persistence.domain.Plan Created Persistence|SPRING_CONFIG_ROOT/applicationContext.xml Updated ROOT/pom.xml [added module Persistence] persistence setup --provider HIBERNATE --database MYSQL --databaseName test10 --hostName localhost --userName BILBO --password BAGGINS Created Persistence|SPRING_CONFIG_ROOT/database.properties Please update your database details in src/main/resources/META-INF/spring/database.properties. Updated Persistence|SPRING_CONFIG_ROOT/applicationContext.xml Created Persistence|SRC_MAIN_RESOURCES/META-INF/persistence.xml Updated Persistence|ROOT/pom.xml [added dependencies mysql:mysql-connector-java:5.1.18, org.hibernate:hibernate-core:3.6.8.Final, org.hibernate:hibernate-entitymanager:3.6.8.Final, org.hibernate.javax.persistence:hibernate-jpa-2.0-api:1.0.1.Final, org.hibernate:hibernate-validator:4.2.0.Final, javax.validation:validation-api:1.0.0.GA, cglib:cglib-nodep:2.2.2, javax.transaction:jta:1.1, org.springframework:spring-jdbc:${spring.version}, org.springframework:spring-orm:${spring.version}, commons-pool:commons-pool:1.5.6, commons-dbcp:commons-dbcp:1.3] database reverse engineer --schema test10 --activeRecord false --includeTables "Plan GAddress HPAverage HPQTAround Houseprice" -- package ~.domain --testAutomatically true Created uk.co.stub.multimodulethreeteir.persistence.domain.Plan Created Persistence|SRC_MAIN_RESOURCES/dbre.xml Updated Persistence|ROOT/pom.xml Updated Persistence|SRC_MAIN_RESOURCES/META-INF/persistence.xml Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/Gaddress.javCreated uk.co.stub.multimodulethreeteir.persistence.domain.Plan Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/Hpaverage.java Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/Hpqtaround.java Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/Houseprice.java Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/Plan.java Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/GaddressDataOnDemand.java Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/GaddressIntegrationTest.java Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/HpaverageDataOnDemand.java Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/HpaverageIntegrationTest.java Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/HpqtaroundDaCreated uk.co.stub.multimodulethreeteir.persistence.domain.Plan Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/HpqtaroundIntegrationTest.java Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/HousepriceDataOnDemand.java Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/HousepriceIntegrationTest.java Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/PlanDataOnDemand.java Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/PlanIntegrationTest.java Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/Gaddress_Roo_ToString.aj Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/Gaddress_Roo_Jpa_Entity.aj Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/Gaddress_Roo_DbManaged.aj Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/Hpaverage_Roo_ToString.aj Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/Hpaverage_RoCreated uk.co.stub.multimodulethreeteir.persistence.domain.Plan Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/Hpaverage_Roo_DbManaged.aj Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/Hpqtaround_Roo_ToString.aj Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/Hpqtaround_R Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/Hpqtaround_Roo_DbManaged.aj Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/Houseprice_Roo_ToString.aj Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/Houseprice_Roo_Jpa_Entity.aj Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/Houseprice_Roo_DbManaged.aj Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/Plan_Roo_ToString.aj Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/Plan_Roo_Jpa_Entity.aj Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/Plan_Roo_DbManaged.aj Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/HpqtaroundDataOnDemand_Roo_Configurable.aj Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/HpqtaroundIntegrationTest_Roo_Configurable.aj Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/HousepriceDataOnDemand_Roo_Configurable.aj Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/GaddressDataOnDemand_Roo_Configurable.aj Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/HpaverageDataOnDemand_Roo_Configurable.aj Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/GaddressIntegrationTest_Roo_Configurable.aj Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/HousepriceIntegrationTest_Roo_Configurable.aj Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/PlanDataOnDemand_Roo_Configurable.aj Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/HpaverageIntegrationTest_Roo_Configurable.aj Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/d [org.apache.felix.framework [0]] FrameworkEvent STARTLEVEL CHANGED repository jpa -- interface ~.Repos.Houseprice --entity ~.domain.Housepric [org.springframework.roo.process.manager [61]] ServiceEvent UNREGISTERING Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/ Downloaded 100% of roobot.xml.zip Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/repos/Houseprice.java Created Persistence|SPRING_CONFIG_ROOT/applicationContext-jpa.xml Updated Persistence|ROOT/pom.xml [added dependency org.springframework.data:spring-data-jpa:1.0.2.RELEASE] Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/repos/Houseprice_Roo_Jpa_Repository.aj repository jpa -- interface ~.Repos.Hpaverage --entity ~.domain.Hpaverage Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/repos/Hpaverage.java Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/repos/Hpaverage_Roo_Jpa_Repository.aj repository jpa -- interface ~.Repos.Hpqtaround --entity ~.domain.Hpqtaround Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/repos/Hpqtaround.java Created Persistence|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/persistence/repos/Hpqtaround_Roo_Jpa_Repository.aj module focus --moduleName Service service --entity Persistence|~.domain.Houseprice -- interface ~.service.HousepriceService Created Service|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/service/service Created Service|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/service/service/HousepriceService.java Created Service|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/service/service/HousepriceServiceImpl.java Updated Service|ROOT/pom.xml [added dependency uk.co.stub.multimodulethreeteir.persistence:Persistence:0.1.0.BUILD-SNAPSHOT;] Created Service|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/service/service/HousepriceService_Roo_Service.aj Created Service|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/service/service/HousepriceServiceImpl_Roo_Service.aj service --entity Persistence|~.domain.Hpaverage -- interface ~.service.HpaverageService Created Service|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/service/service/HpaverageService.java Created Service|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/service/service/HpaverageServiceImpl.java Created Service|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/service/service/HpaverageService_Roo_Service.aj Created Service|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/service/service/HpaverageServiceImpl_Roo_Service.aj service --entity Persistence|~.domain.Hpqtaround -- interface ~.service.HpqtaroundService Created Service|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/service/service/HpqtaroundService.java Created Service|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/service/service/HpqtaroundServiceImpl.java Created Service|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/service/service/HpqtaroundService_Roo_Service.aj Created Service|SRC_MAIN_JAVA/uk/co/stub/multimodulethreeteir/service/service/HpqtaroundServiceImpl_Roo_Service.aj Script required 3.229 seconds to execute Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/HpqtaroundDataOnDemand_Roo_DataOnDemand.aj Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/HpqtaroundIntegrationTest_Roo_IntegrationTest.aj Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/HpaverageDataOnDemand_Roo_DataOnDemand.aj Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/HpaverageIntegrationTest_Roo_IntegrationTest.aj Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/HousepriceDataOnDemand_Roo_DataOnDemand.aj Created Persistence|SRC_TEST_JAVA/uk/co/stub/multimodulethreeteir/persistence/domain/HousepriceIntegrationTest_Roo_IntegrationTest.aj
        Hide
        Andrew Swan added a comment -

        By the way, I don't know if the naming choices are yours to make, but:

        • Java package names should be in all lower case.
        • It would avoid confusion and make your code cleaner if you gave your repositories different "simple names" to your entities, i.e. instead of calling them both Houseprice, call the entity Houseprice and the repository something like HousepriceRepository. Otherwise any time one source file refers to both types, you're going to have to use the fully-qualified form for one of them, which is ugly and impairs readability.
        Show
        Andrew Swan added a comment - By the way, I don't know if the naming choices are yours to make, but: Java package names should be in all lower case . It would avoid confusion and make your code cleaner if you gave your repositories different "simple names" to your entities, i.e. instead of calling them both Houseprice , call the entity Houseprice and the repository something like HousepriceRepository . Otherwise any time one source file refers to both types, you're going to have to use the fully-qualified form for one of them, which is ugly and impairs readability.
        Hide
        stub added a comment -

        Thanks for the clarification and the comments.
        Assuming this is available in the 1.2.0 GA release rather than in the 1.2.1 RELEASE fix version as annotated on this jira.

        Show
        stub added a comment - Thanks for the clarification and the comments. Assuming this is available in the 1.2.0 GA release rather than in the 1.2.1 RELEASE fix version as annotated on this jira.
        Hide
        Andrew Swan added a comment -

        Yes, it already works in 1.2.0.RELEASE, sorry for any confusion. I've removed the "fix version" to make it totally clear.

        Show
        Andrew Swan added a comment - Yes, it already works in 1.2.0.RELEASE, sorry for any confusion. I've removed the "fix version" to make it totally clear.

          People

          • Assignee:
            Andrew Swan
            Reporter:
            stub
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: