Confused about naming of JavaBean properties, with respect to getters and setters

前端 未结 3 1934
自闭症患者
自闭症患者 2020-12-19 11:29

I am making an application that uses Drools planner.

The @ValueRangeFromSolutionProperty is supposed to refer to a property from another class (NQ

3条回答
  •  -上瘾入骨i
    2020-12-19 11:42

    That's defined by the JavaBeans naming conventions. The getter name will have "get" followed by the property name with the first letter capitalized.

    A related question with more information

提交回复
热议问题