Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor how ORM with Panache generates bridge methods #2818

Merged
merged 2 commits into from
Jun 13, 2019

Conversation

FroMage
Copy link
Member

@FroMage FroMage commented Jun 13, 2019

No more special cases: all methods annotated with GenerateBridge will be plugged in, like I had it in panache-rx.
Added the panache-common-deployment module to hold classes common to both jpa/rx implementations that have no place at runtime.

Copy link
Member

@dmlloyd dmlloyd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise seems OK though I really don't know what is happening here in detail :)

Copy link
Member

@evanchooly evanchooly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks much nicer. Big fan of the annotation based approach rather than the magical name system.

generateMethod("deleteAll", "()J", null, Opcodes.LRETURN, null);
for (MethodInfo method : panacheEntityBaseClassInfo.methods()) {
AnnotationInstance bridge = method.annotation(JandexUtil.DOTNAME_GENERATE_BRIDGE);
if (bridge != null)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we require braces? (please say yes)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll say not if the formatter does not, and it does not ;)

@FroMage
Copy link
Member Author

FroMage commented Jun 13, 2019

Thanks guys!

@FroMage FroMage merged commit 3935835 into quarkusio:master Jun 13, 2019
@gsmet gsmet added this to the 0.17.0 milestone Jun 19, 2019
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.

None yet

4 participants