Yoann Rodière (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-15450 (
https://hibernate.atlassian.net/browse/HHH-15450?atlOrigin=eyJpIjoiNTc2NG...
)
Re: Add fluent style access type (
https://hibernate.atlassian.net/browse/HHH-15450?atlOrigin=eyJpIjoiNTc2NG...
)
We might want to consider how to make that the default, as well.
We could have a configuration property (“use the FLUENT access type instead of PROPERTY by
default” = true, “).
We could also try to emulate the current mechanism based on @Id : on an entity, if the @Id
annotation is found on a method that doesn’t follow the JavaBeans naming conventions (e.g.
Long id() ), then we would default to the FLUENT access type. There are multiple
challenges, though:
* No idea how this would work on mapped superclasses that don’t include an ID, but I
suspect we have the same problem with the current access type (no way to decide on a
default).
* What if I have a property in the fluent style that happens to also match JavaBeans
conventions, e.g.`getDoneFast`? ( boolean getDoneFast; public boolean getDoneFast();
public boolean getDoneFast(boolean value); )
(
https://hibernate.atlassian.net/browse/HHH-15450#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-15450#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100204- sha1:f005d5a )