playframework - Multiple evolutions for multiple databases in the Play Framework -
I have two databases that I want to store objects, each other is unique
object1 database1 for object2 p> "post-text" itemprop = "text"> To do this you will create two different DB connections
db.default.driver = "com.mysql.jdbc. Driver "db.default.url =" jdbc: mysql: // localhost: 3600 / db_name1 "db.default.user =" user name "db.default.password =" password "db.otherDBName.driver =" com.mysql .jdbc .Driver "db.otherDBName.url =" jdbc: mysq l: // localhost: 3306 / db_name2 "db.otherDBName.user =" user name "db.otherDBName.password =" password "// Then you know that Eben knows where from the model ebean.default =" models . * "Ebean.otherDBName =" otherDB.models. * "// You can refer to other DBName with Ebian.getServer (" Other DBName "). Save (object);
Comments
Post a Comment