In many points of my code, three annotations appears together:
@BeanProperty
@(SpaceProperty @beanGetter)(nullValue="0")
where nullValue="0" is a parameter to the annotation SpaceProperty.
Is it possible to define a single type alias for @BeanProperty @(SpaceProperty @beangetter) ?
The best I could do was:
type ScalaSpaceProperty = SpaceProperty @beanGetter
@BeanProperty
@(ScalaSpaceProperty)(nullValue = "0")
Is it possible to define a type alias for two annotations where the parameters are applied to the last one?
No. You can write a macro to do this in Scala 2.10, I think (but the documentation isn’t available at the moment, so I can’t check).