mardi 3 novembre 2020

Scala - Access Object's field within Class Annotation

Is it possible to do something like the following?

@FunctionHint(
  output = new DataTypeHint(s"is_$role BOOLEAN")
)
class Func(role: String) extends TableFunction[Boolean] {
  ...
}

Notice the use of role in the Annotation which is a field on the Object being annotated.





Aucun commentaire:

Enregistrer un commentaire