|
The easiest way to define a bean in Scala:
import reflect.BeanProperty;
class Parent {
@BeanProperty
var firstName: String = null
@BeanProperty
var lastName: String = null
@BeanProperty
var phone: String = null
}
getters and setters will be automatically be generated (required by many frameworks).
|