当我运行以下命令以使用域类生成ProductSubProductSub
集成测试时,它会生成以下文件。
命令运行
test integration --entity ~.domain.ProductSubProductSub
SRC_TEST_JAVA\com\monkey\domain\ProductSubProductSubDataOnDemand.java
Created SRC_TEST_JAVA\com\monkey\domain\ProductSubProductSubIntegrationTest.java
Created SRC_TEST_JAVA\com\monkey\domain\ProductSubProductSubIntegrationTest_Roo_Configurable.aj
Created SRC_TEST_JAVA\com\monkey\domain\ProductSubProductSubDataOnDemand_Roo_DataOnDemand.aj
Created SRC_TEST_JAVA\com\monkey\domain\ProductSubProductSubIntegrationTest_Roo_IntegrationTest.aj
Created SRC_TEST_JAVA\com\monkey\domain\ProductSubProductSubDataOnDemand_Roo_Configurable.aj
但是当我尝试使用PspsModifierCodePosIds
类进行sam时,它不会生成_ROO_DataonDeman.aj文件,但会生成其余的aj文件。
运行的命令是test integration --entity ~.domain.PspsModifierCodePosIds
可能是什么原因?任何提示?
答案 0 :(得分:0)
我发现原因是我删除了@RooJpaActiveRecord
注释。它删除了上面的_ROO_DataonDeman.aj
文件。如果我们有Repository那么也会生成上面的aj文件。但是,不清楚为什么它强制为对象生成Repository。