Play + Scala code generator module

293 views
Skip to first unread message

Aishwarya Singhal

unread,
Aug 18, 2011, 2:27:09 PM8/18/11
to play-framework
Hi All

I have written a module to generate code for use with Play
applications written in Scala. It generates Rails like CRUD
"scaffold"s i.e. model + view + controller for entities by leveraging
JPA, along with Spec based unit tests and Selenium based functional
tests. So, you can now have a Scala driven CRUD application (with a
couple of entities) written from scratch on play up and running (with
> 80% code coverage) in less than 10 mins :-) The index/ listing page
of each entity is shown using JQGrid and provides pagination, search
and sorting of data.

If you are interested, it is available of github at
https://github.com/asinghal/Play-ScalaGen

I would love to hear of some feedback on the same, contributions to
the code are obviously welcome.

Best regards
Aishwarya

ShengYu Huang

unread,
Aug 18, 2011, 10:07:10 PM8/18/11
to play-fr...@googlegroups.com
good work!!!! thanks:)

Pascal Voitot Dev

unread,
Aug 19, 2011, 2:15:52 AM8/19/11
to play-fr...@googlegroups.com
yes really interesting!
I will try this asap!

Thanks
Pascal

On Fri, Aug 19, 2011 at 4:07 AM, ShengYu Huang <s901...@gmail.com> wrote:
good work!!!! thanks:)

--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/z1o1jYXawDwJ.

To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.

ouertani slim

unread,
Aug 19, 2011, 3:40:51 AM8/19/11
to play-framework
Thanks, hangry to try it

On Aug 18, 7:27 pm, Aishwarya Singhal <asingha...@gmail.com> wrote:
> Hi All
>
> I have written a module to generate code for use with Play
> applications written in Scala. It generates Rails like CRUD
> "scaffold"s i.e. model + view + controller  for entities by leveraging
> JPA, along with Spec based unit tests and Selenium based functional
> tests. So, you can now have a Scala driven CRUD application (with a
> couple of entities) written from scratch on play up and running (with> 80% code coverage) in less than 10 mins :-) The index/ listing page
>
> of each entity is shown using JQGrid and provides pagination, search
> and sorting of data.
>
> If you are interested, it is available of github athttps://github.com/asinghal/Play-ScalaGen

Aishwarya Singhal

unread,
Aug 19, 2011, 11:05:34 AM8/19/11
to play-framework
Thanks everyone. Please do let me know of your experience with it and
how we can make it even better!

Best regards
Aishwarya

ouertani slim

unread,
Aug 21, 2011, 5:58:28 AM8/21/11
to play-framework
Can I know why this code is not written in scala ?

Huang ShengYu

unread,
Aug 21, 2011, 10:09:49 AM8/21/11
to play-fr...@googlegroups.com
i have a same question with you XD, why not scala
i read some source code, and it is very interesting...

Aishwarya Singhal

unread,
Aug 23, 2011, 1:34:23 AM8/23/11
to play-framework
Hi Ouertani/ Huang

Thank you for the feedback!

No special reason, I was just more comfortable with Java at the point
of writing it. I actually started with fixing the Scala code
generators in the eclipse plugin (playclipse), which was written in
Java, but then it felt more appropriate to make it IDE independent
once it started taking some shape. I can easily port it to Scala if
you see the current state being a hindrance.

The main reason I wrote the module was that I wanted to focus on
learning new things in Scala and Play rather than writing the same
code over and over again. Hence, pardon the code please, I am happy to
review and build your feedback into it :-). Please feel free to open
issues on github/ fork the repository.

Thanks and Best regards
Aishwarya

John Rojas

unread,
Jul 19, 2014, 2:54:29 PM7/19/14
to play-fr...@googlegroups.com
Hello

Have not seen much activity in your project and I just wanted to know if you are planning on updating for current version of the framework.

Great work and thanks!

John

Reply all
Reply to author
Forward
0 new messages