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

Beans: put ExportName on fields (goodbye to strict JavaBeans) #359

Open
ljacqu opened this issue Aug 21, 2023 · 0 comments
Open

Beans: put ExportName on fields (goodbye to strict JavaBeans) #359

ljacqu opened this issue Aug 21, 2023 · 0 comments
Assignees
Labels
architecture Difficult architectural questions beanmapper Issues that relate to the bean mapper
Milestone

Comments

@ljacqu
Copy link
Member

ljacqu commented Aug 21, 2023

Goal: base bean properties on a class's fields (that have getters/setters) rather than using JavaBean definitions. The current concept has been outgrown now that we support @Comment on the field—it's awkward that @ExportName needs to be set on a method, not to mention that @Transient is hard to "find out" about.

Note: This is probably a prerequisite for #135.

To do:

  • Change @ExportName to go on fields
  • Based on field names and methods, infer what properties a class has
  • Introduce dedicated @Ignore annotation to ignore properties? Might be useful later on if we have "value classes" -> Prototype other way of handling properties #12

Open point: For #135, we might have to infer the properties not by field but maybe by a method or constructor that is annotated somehow... So a bean property class probably can't have a "setValue" anymore? ...

@ljacqu ljacqu added beanmapper Issues that relate to the bean mapper architecture Difficult architectural questions labels Aug 21, 2023
@ljacqu ljacqu added this to the 2.0.0 milestone Aug 21, 2023
ljacqu added a commit that referenced this issue Sep 26, 2023
@ljacqu ljacqu self-assigned this Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
architecture Difficult architectural questions beanmapper Issues that relate to the bean mapper
Development

No branches or pull requests

1 participant