How to customize the game! framework project for the use of the kunder with Kassandra

I am using Play! 2.0 and there are problems using the Cassandra database. How to configure the properties of the application.conf file to use a high-level client such as Kundera. Do I need to create a persistence.xml file in the conf / META-INF folder?

I did not find anyone with similar problems. Can I use Play! + Kundera + Cassandra? How to do it?

+4
source share
3 answers

It is currently not possible to use cassandra as a backend for your models (@Model annotation) on Play! 2.0.

We are trying to provide support for NoSQL Models on Play! via Siena ( http://www.sienaproject.com/index.html ), but the module ( https://github.com/mandubian/play-siena ) for supporting Play 1.x and cassandra has not yet been implemented.

So, the only way to use Play! 2.0 + Kundera - delete the necessary banks in the lib / directory, put persistence.xml in the META-INF folder anywhere in your class path (as described in the Getting Started section https://github.com/impetus-opensource/Kundera / wiki / Getting-Started-in-5-minutes ) and define @Entity classes.

However, you will not get support for the @Model annotation or the CRUD admin area.

+3
source

I tried running Kundera on Cassandra and MongoDB with Play! and it works without any important configuration. The link below will help you: http://xamry.wordpress.com/2013/07/06/play-nosql-building-nosql-applications-with-play-framework/

+2
source

You can also learn about Playorm, which has plugins for Play 1.x and 2.x http://buffalosw.com/wiki/playorm-documentation/

-1
source

Source: https://habr.com/ru/post/1401891/


All Articles