Skip to content

fix(java): populate decorators field from annotations#853

Open
Liurchen wants to merge 1 commit into
colbymchenry:mainfrom
Liurchen:fix/java-annotation-decorators
Open

fix(java): populate decorators field from annotations#853
Liurchen wants to merge 1 commit into
colbymchenry:mainfrom
Liurchen:fix/java-annotation-decorators

Conversation

@Liurchen

Copy link
Copy Markdown

Java annotations were extracted as decorates edges but never stored in the decorators field on nodes. This meant queries relying on node.decorators (e.g. "find all JPA entities") returned nothing.

Add an extractModifiers hook to the Java extractor that walks the modifiers child and collects annotation names (@Entity, @Table, @Service, @RequiredArgsConstructor, etc.) into the decorators array, matching the behaviour Kotlin already has.

Java annotations were extracted as `decorates` edges but never stored
in the `decorators` field on nodes. This meant queries relying on
node.decorators (e.g. "find all JPA entities") returned nothing.

Add an `extractModifiers` hook to the Java extractor that walks the
`modifiers` child and collects annotation names (`@Entity`, `@Table`,
`@Service`, `@RequiredArgsConstructor`, etc.) into the decorators
array, matching the behaviour Kotlin already has.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant