-
Notifications
You must be signed in to change notification settings - Fork 5
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
util-property: create new module with generic bean and property support #163
Comments
Already quite cool for the first approach, still some work to do. |
…hods (hashCode, equals, toString), improved test-case (validation, toString)
…ethod, improved getRequiredProperty exception message, fixed property access.
Initially I am very disappointed that Java did not invent real properties as part of the language.
|
…eck if value did not change just like in JavaFx
I suggest to move this to 8.0.0 as this requires java8 and that will make it clear and simple:
This should not cause a real large delay but enough to revisit some things before API gets frozen. |
See also #151 for the milestone aspect. |
Fabrication can take place via static method of interface: Also default methods for custom code are supported. |
Both getter/setter: as well as property access methods are supported: |
…ped variable to prevent erasure surprise, binding fix for getValue, GenericPropertyImpl.doSetValue fixed, etc.)
…ecting interfaces already visited (performance optimization), further renaming
…kages (make also property implementations API as they shall be directly used by end users), generic factory support
I played a little bit with your implementation. My first experiment was what will hibernate say to you "proxied" beans. Sadly that's not working, since hibernate does not support mapping of entities which are interfaces (see https://hibernate.atlassian.net/browse/HHH-4413). |
I forgott beside of this a like the approach, especially the flexibility it gives when mapping json objects, where you can have dynamic properties... |
Thanks for your feedback. I am getting to the point that hibernate is just
|
…rs as varargs #163: improved accordingly
…an because operation map was copied as is #177: improved and refactored: all query stuff including path and expression now in query module, package structure improved, Alias and Variable act as PathRoot that are PathFactory to build path, paths validated to prevent inconsistent paths or queries (needs further improvement), fluent API for property path now without need for type-name in methods, etc.
@maihacke in case you are still interested - here is JPA support and an exmaple: |
…default methods to provide dynamic logic (e.g. check a condition and depending on that return one or another regular property). In order to provide initialization code for a regular property the default method can be annotated with @Inject.
…-data module in order to decouple property and bean to its final state.
Considered done. |
After years of pain with implementing stupid Java beans with tons of boilerplate code and after some experiments with JavaFx properties I want to start a new approach:
All possible with Java8 today. Approach is worth to be implemented, evaluated and used in practice.
BTW: Would be the perfect solution for mmm-client.
The text was updated successfully, but these errors were encountered: