import scala.reflect.BeanProperty; trait beanpropertytrait { @BeanProperty var myVariable: Long = -1l; }