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