PlayFramework+GAE+Siena using Datastore and Cloud SQL simultaneously

27 views
Skip to first unread message

Vitalik Perekhoden

unread,
Mar 7, 2014, 6:38:09 AM3/7/14
to siena-...@googlegroups.com

Does anyone knows if there is way to use Datastore and Cloud SQL in GAE application simultaneously (PlayFramework 1.2.7 with GAE plugin).

E.g.

@Table("sometable1")
class Model1 extends siena.Model{}

@Table("sometable2")
class Model2 extends siena.Model{}

I want to make possible to store Model1 to Cloud SQL (via Siena), and Model2 to Datastore (also via Siena)

Is there any solution?

Emanuele Ziglioli

unread,
Mar 13, 2014, 4:45:17 PM3/13/14
to siena-...@googlegroups.com
Hi Vitalik,

you can try this: put your your models in different packages, and use different siena.properties files.
I've never tried myself, I mean: I do have models in different packages but they use the same PersistenceProvider.
Let us know if it works, glad to see more Siena users out there!
Reply all
Reply to author
Forward
0 new messages