Thanks. I found that myself along with scala-javautils in github by
Jorge Ortiz which helps out with the converting from Scala collections
to Java ones.
The @BeanProperty annotation works fine for val and vars but is not
helpful if your passing around mapper instances where the attribs/
props are objects. Of course passing a mapper instance to a 3rd party
lib is probably not a good idea anyway so my solution is to add a toDto
() to my class which creates an immutable data transfer object or
value object from its state which when passed into velocity (with
@BeanProperty annotations) works as expected.
Thanks again.
> andhttp://
scala.sygneca.com/code/defining-bean-properties