[英]What is the right way to operate on a newly created MySQL DB within Java Play Framework (2.5.x)?
I have already created the DB which has no tables so far & have successfully connected it with Play.我已经创建了迄今为止没有表的数据库并已成功将其与 Play 连接。 But what is the right way to create the tables from within Play?
但是在 Play 中创建表格的正确方法是什么? I was going to proceed with Evolutions script but their documentation mentions that evolutions is to be used while updating the DB.
我打算继续使用 Evolutions 脚本,但他们的文档提到在更新数据库时要使用进化。
So a user answered this question and then removed it.所以一个用户回答了这个问题,然后将其删除。 Nevertheless he suggested to use Ebean which manages the database through evolutions.
尽管如此,他还是建议使用 Ebean,它通过进化来管理数据库。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.