This annotation has the same functionality as scala.beans.BeanProperty
, but the generated Bean getter will be named isFieldName
instead of getFieldName
.
© 2002-2019 EPFL, with contributions from Lightbend.
Licensed under the Apache License, Version 2.0.
https://www.scala-lang.org/api/2.13.0/scala/beans/index.html
When attached to a field, this annotation adds a setter and a getter method following the Java Bean convention. For example:
adds the following methods to the class:
For fields of type
Boolean
, if you need a getter namedisStatus
, use thescala.beans.BooleanBeanProperty
annotation instead.