Untied
Untied

Reputation: 11

How to share models between several applications in Play! framework?

I'm creating a web-portal with Play framework (several websites with on a single database). How can I share one class containing model between several applications? I do not want to synchronize manually the code between my applications 'cause this way is full of potential errors. Thanks! PS. I use PF 1.2.7 with pure Java.

Upvotes: 0

Views: 141

Answers (1)

Thomas
Thomas

Reputation: 1420

Why not putting your model in a dedicate project packaged in a jar.

And then reference this in your different Play projets ?

Upvotes: 1

Related Questions