开发者

Sharing data models among separate but related sites

I am working on the design for a series of websites built on the Play! Framework and Scala. Each site will have its own data models, but they will also need to share a few user related tables with each other.

Whats开发者_高级运维 the best way to organize those user table models so that the code can be easily shared among the different web site projects?

I am currently using IntelliJ so any solutions that target that IDE specifically would be greatly appreciated.


The preferred way to handle such problem in play are modules, see How does one create a Play Module?. So you put the common models in a modul and refer it from your applications. If you do this by adding a relative path in application.conf it should be easily to work on this.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜