In a 1.1 branch near you (lp:~schuller-lunatech/play/1.1-scala-
tutorial at the moment) there is now support for writing models in
Scala. I thought it was already working a few days ago, until today a
test failed with "Can't find property with name 'comments' on class
models.Post".
This could be solved in two different ways. The first would be to say
that every Scala model would have to use @BeanProperty annotations.
But that would make them ugly. So I chose the second, which was to
teach play about Scala setters. That's what's in my branch now. I hope
you like it.
The second part of the tutorial is also done, now linked from the
Scala page. I may come back to this part later, because the
AssertNotNull tests reminded me that Scala can be used to do away with
nulls using the Option type.
Until the next part,
> Using scala setter will cause other problems like loading data from
> fixtures. Just wondering whether should we use @BeanProperty after
> all.
That's the thing: the test that failed which prompted my change was
indeed loading yaml data. So I know that works.
As for CRUD: I haven't tried it yet, but I think it may just work now.