Lombok with Play 2

Posted by Alex Povar on Stack Overflow See other posts from Stack Overflow or by Alex Povar
Published on 2012-06-16T09:12:28Z Indexed on 2012/06/16 9:16 UTC
Read the original article Hit count: 405

Filed under:
|

What about Lombok integration with Play Framework 2? I really like Lombok it make my code more readable and less boilerplate. And Play Framework is wonderful too. But there is a great trouble in case if you going to mixup them.

Main reason is that scala temlates in play project compiled before domain classes. So Lombok, which itself is compiler's hack do not generate accessors for that time.

The question is: if it any ways to make it work?

I found some discussions in Google Groups, but they do not provide any reasonable solution. So have you got any success with it?

And.. why guys from Play Framework project do not provide some Lombok-like solution? Anyway Play is full of code-generation magic and shadow compiling... so, why not?

© Stack Overflow or respective owner

Related posts about playframework

Related posts about lombok