简体   繁体   English

从使用Play框架1.X的GAE上的Siena到使用Play 2.0的Heroku上的哪个数据库/ api /模块?

[英]From Siena on GAE using Play framework 1.X to which database/api/module on Heroku using Play 2.0?

I've really enjoyed using Play framework 1.X on Google App Engine with Siena for data storing. 我真的很喜欢在带有Siena的Google App Engine上使用Play框架1.X进行数据存储。

Now I'm looking into using Play framework 2.0 for a new project. 现在,我正在考虑将Play Framework 2.0用于新项目。 As Play isn't ready for GAE I'm going to try out Heroku. 由于Play尚未为GAE做好准备,因此我将尝试Heroku。 What are my options if I want the simplicity of annotating my classes like with Siena and having them stored in some NoSQL database at Heroku? 如果我想像用Siena这样注释类并将它们存储在Heroku的NoSQL数据库中这样简单,我有什么选择? Can I use the built in data storage support in Play or are there any modules that support some NoSQL addon at Heroku? 我可以在Play中使用内置的数据存储支持,还是在Heroku中有支持某些NoSQL插件的模块?

Edit: 编辑:

I want to use Play's Java API (not Scala). 我想使用Play的Java API(而非Scala)。

With Play 1.2.X you could use the " MongoLab " add-on to Heroku together with the Morphia Play module . 通过Play 1.2.X,您可以将“ MongoLab ”附加组件Morphia Play模块一起使用。

As for Play2, I would suggest checking out the " salat " plugin to access your MongoDB's. 至于Play2,我建议您查看“ salat ”插件以访问您的MongoDB。 See https://github.com/zenexity/Zest for an example play2 app using salat. 有关使用salat的play2应用示例,请参见https://github.com/zenexity/Zest Good luck! 祝好运!

If your models are not too specific to GAE, you can switch to postgres quite easily with Siena. 如果您的模型不太适合GAE,则可以使用Siena轻松切换到postgres。 It's one of its main purpose ;) 这是其主要目的之一;)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM