Many<T> YAML syntax

7 views
Skip to first unread message

Ostap

unread,
Feb 12, 2012, 6:21:51 PM2/12/12
to Siena
I recently started digging into play-framework + siena + gae and it's
really awesome toolkit!

I have one question; hope, that's the right place to ask it :)

I have the following models:
public class Word extends EnhancedModel{
...
@Owned
Many<Explanation> explanations;
}

public class Explanation extends EnhancedModel {
String content;
}

While creating some mockups YAML init files are very helpful.
How can I explain Many<T> relations in this files?

Pascal Voitot Dev

unread,
Feb 13, 2012, 2:41:23 AM2/13/12
to siena-...@googlegroups.com
Hi,
Currently autoquery Query<T> is managed but not Many<T> for YAML in play-siena...
Actually Many<T> was only implemented for GAE and not managed in play-siena as it still was a feature in test.
I don't have time right now to work on Siena as I'm busy on other projects so it doesn't really evolve as it should.

regards
Pascal


--
You received this message because you are subscribed to the Google Groups "Siena" group.
To post to this group, send email to siena-...@googlegroups.com.
To unsubscribe from this group, send email to siena-discus...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/siena-discuss?hl=en.


opensas

unread,
Feb 13, 2012, 8:09:41 PM2/13/12
to Siena
I hope this tutorial might help you get started with play + gae +
siena

https://github.com/opensas/play-demo/wiki/Step-14---deploy-to-gae

saludos

sas

Ostap

unread,
Feb 15, 2012, 5:43:35 PM2/15/12
to Siena
Thanks for the responses,
Now I understand, why I couldn't make SienaFixtures work with my
models.
That tutorial is very useful; together with the official yabe they
give a quick and nice overview of the Play!

So in this case, I just created fake and useless init controller,
where all the models are instantiated and saved from java source.
Reply all
Reply to author
Forward
0 new messages