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

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -