The “fluent” style is to not have prefixes for method names. Every no-arg non-void method is considered a property. A single arg void method with the same name and argument type matching the read accessor type, is considered to be the write accessor. For example:
@Entity
@Access(FLUENT)
public class Blog {
...
public String title() {...}
public void title(String title) {...}
}
It might be worth considering same named single argument methods also as write accessors, regardless of the return type, to support use cases where the write accessor returns the “this” object for chained method invocation. |