Skip to content

Commit 83cf6d2

Browse files
committed
PMD: Fix AvoidListAsEntityRelation detection
1 parent ab39d28 commit 83cf6d2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.config/pmd/java/ruleset.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ A `Set` also prevents duplicates when the ORM reads multiple identical rows from
440440
<value>
441441
<![CDATA[
442442
//ClassDeclaration[pmd-java:hasAnnotation('jakarta.persistence.Entity')]
443-
//FieldDeclaration[pmd-java:hasAnnotation('jakarta.persistence.ManyToMany') or pmd-java:hasAnnotation('jakarta.persistence.OneToMany')]
443+
//FieldDeclaration[pmd-java:hasAnnotation('jakarta.persistence.ManyToMany') or pmd-java:hasAnnotation('jakarta.persistence.OneToMany') or pmd-java:hasAnnotation('jakarta.persistence.ElementCollection')]
444444
/ClassType[pmd-java:typeIs('java.util.List')]
445445
]]>
446446
</value>

0 commit comments

Comments
 (0)