We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6182fa6 commit f547dddCopy full SHA for f547ddd
src/test/java/com/devonfw/sample/archunit/ConventionRules.java
@@ -48,7 +48,7 @@ static ArchRule entitiesShouldHaveEntitySuffixAndDataaccessLayer() {
48
static ArchRule embeddablesShouldHaveEmbeddableSuffixAndCommonLayer() {
49
50
return priority(Priority.HIGH).classes().that().areAnnotatedWith(Embeddable.class).should().haveSimpleNameEndingWith(EMBEDDABLE)
51
- .andShould().resideInAnyPackage(".." + PackageStructure.LAYER_COMMON + "..")
+ .andShould().resideInAnyPackage(".." + PackageStructure.LAYER_COMMON + "..").allowEmptyShould(true)
52
.because("embeddables shall have 'Embeddable' suffix and common layer to prevent overhead of transfer objects");
53
}
54
0 commit comments