How to quickly generate models in play framework 1

2019-07-04 01:36发布

Does play framework have anything like quickly generator of models by schema? I like symfony + doctrine infrastructure, but I can't use it in this case.

3条回答
The star\"
3楼-- · 2019-07-04 02:17

I think Minute-Project should do what you want. How ever you still need a lot of time to make the generated code suitable. A second possibility is the jpa-gen-module.

查看更多
Deceive 欺骗
4楼-- · 2019-07-04 02:20

I don't know of one in Play, but you can probably use the Hibernate tools to generate @Entity classes and modify them afterwards to extend Model or GenericModel.

查看更多
登录 后发表回答