play-siena
play-siena copied to clipboard
Many in play gae
Is it possible to use Many in Play with GAE? I tried to reproduce sample application from Siena samples, but I cant fetch children back.
I don't see why it couldn't be possible to do that. I know it doesn't work with crud-siena.
Do you inherit siena.Model?
Do you have a sample of your code?
Thank you for such fast answer. Probably some fault on my side, but really dont know where. I tried also "old" style relatioship with @Filter but without success. I made a gist:https://gist.github.com/1892658 Do you see any trouble?
Could you test your code in a controller to see if it works? I can make it work in a controller... maybe there is a problem with test environment...
In controller its working ok. I have tried it with SienaFixtures like you in the samples, but same result. Do you have any clue how to fix it?
Or maybe other question. I think, I have the same problem when I use "old style" @Filter. I thought that there can be problem with eclipsify. But its not. But I assume, that your samples are working fine... So where can be problem?
No any real idea right now, I need to test in the tests :)... do you use play 1.2.4?
pascal
On Thu, Feb 23, 2012 at 7:05 PM, matejuh < [email protected]
wrote:
Or maybe other question. I think, I have the same problem when I use "old style" @Filter. I thought that there can be problem with eclipsify. But its not. But I assume, that your samples are working fine... So where can be problem?
Reply to this email directly or view it on GitHub: https://github.com/mandubian/play-siena/issues/11#issuecomment-4141562
No 1.2.3 because your module has 1.2.3 in dependencies and Im new in Play so I wasnt sure, if I can rewrite it and use newer one.
Application dependencies
self: play -> siena 2.0.6
require: - play 1.2.3
Can upgrade if you wish. Without test mode and gae admin console it quite hard to test if my app is working, so it serious issue...
Dne 23.2.2012 23:53, Pascal Voitot napsal(a):
No any real idea right now, I need to test in the tests :)... do you use play 1.2.4?
pascal
On Thu, Feb 23, 2012 at 7:05 PM, matejuh< [email protected]
wrote:
Or maybe other question. I think, I have the same problem when I use "old style" @Filter. I thought that there can be problem with eclipsify. But its not. But I assume, that your samples are working fine... So where can be problem?
Reply to this email directly or view it on GitHub: https://github.com/mandubian/play-siena/issues/11#issuecomment-4141562
Reply to this email directly or view it on GitHub: https://github.com/mandubian/play-siena/issues/11#issuecomment-4147447
The fact that we don't have gae admin console when developing with Play is a shame. But this is due to the fact that GAE Apis are fully based on Servlet API when Play is not at all... this is really a poor design from Google IMHO as using frameworks based on servlets for GAE is really not the right approach IMO.
I'll have a look at your pb asap (I'm busy today)
regards Pascal
On Fri, Feb 24, 2012 at 12:46 PM, matejuh < [email protected]
wrote:
No 1.2.3 because your module has 1.2.3 in dependencies and Im new in Play so I wasnt sure, if I can rewrite it and use newer one.
Application dependencies
self: play -> siena 2.0.6
require: - play 1.2.3
Can upgrade if you wish. Without test mode and gae admin console it quite hard to test if my app is working, so it serious issue...
Dne 23.2.2012 23:53, Pascal Voitot napsal(a):
No any real idea right now, I need to test in the tests :)... do you use play 1.2.4?
pascal
On Thu, Feb 23, 2012 at 7:05 PM, matejuh< [email protected]
wrote:
Or maybe other question. I think, I have the same problem when I use "old style" @Filter. I thought that there can be problem with eclipsify. But its not. But I assume, that your samples are working fine... So where can be problem?
Reply to this email directly or view it on GitHub: https://github.com/mandubian/play-siena/issues/11#issuecomment-4141562
Reply to this email directly or view it on GitHub: https://github.com/mandubian/play-siena/issues/11#issuecomment-4147447
Reply to this email directly or view it on GitHub: https://github.com/mandubian/play-siena/issues/11#issuecomment-4155629
I understand... No hurry, Im also bussy and had only few days to explore Play and Siena. Its for one of my projects which is not so important... Give me known if you find some solution. I would like to know if Im able to use Play and Siena. Which are much better than standard approach. I started this project based on jappstart (gae, jpa, spring+spring security and other) but from the first look I have to say Play+Siena are much more user friendly. And with ability to use Many and test it will be super;).
Dne 24.2.2012 12:50, Pascal Voitot napsal(a):
The fact that we don't have gae admin console when developing with Play is a shame. But this is due to the fact that GAE Apis are fully based on Servlet API when Play is not at all... this is really a poor design from Google IMHO as using frameworks based on servlets for GAE is really not the right approach IMO.
I'll have a look at your pb asap (I'm busy today)
regards Pascal
On Fri, Feb 24, 2012 at 12:46 PM, matejuh< [email protected]
wrote:
No 1.2.3 because your module has 1.2.3 in dependencies and Im new in Play so I wasnt sure, if I can rewrite it and use newer one.
Application dependencies
self: play -> siena 2.0.6
require: - play 1.2.3
Can upgrade if you wish. Without test mode and gae admin console it quite hard to test if my app is working, so it serious issue...
Dne 23.2.2012 23:53, Pascal Voitot napsal(a):
No any real idea right now, I need to test in the tests :)... do you use play 1.2.4?
pascal
On Thu, Feb 23, 2012 at 7:05 PM, matejuh< [email protected]
wrote:
Or maybe other question. I think, I have the same problem when I use "old style" @Filter. I thought that there can be problem with eclipsify. But its not. But I assume, that your samples are working fine... So where can be problem?
Reply to this email directly or view it on GitHub: https://github.com/mandubian/play-siena/issues/11#issuecomment-4141562
Reply to this email directly or view it on GitHub: https://github.com/mandubian/play-siena/issues/11#issuecomment-4147447
Reply to this email directly or view it on GitHub: https://github.com/mandubian/play-siena/issues/11#issuecomment-4155629
Reply to this email directly or view it on GitHub: https://github.com/mandubian/play-siena/issues/11#issuecomment-4155666
Any progress?
no sorry, no progress! I'm on holidays right now :D
I must remind to think about your pb!
regards Pascal
On Sun, Apr 8, 2012 at 4:15 PM, matejuh < [email protected]
wrote:
Any progress?
Reply to this email directly or view it on GitHub: https://github.com/mandubian/play-siena/issues/11#issuecomment-5015681
Hello,
i think, i have a similar problem ... Im using siena 2.0.7 and play 1.2.5 and gae 1.6.0
im trying to use transactions in my app on objects that are related with @many and @one relations. And i ve got a problem in local (maybe in prod too): not same entity group pb.
then i tried on the google datastore viewer this request "To find all the entities, regardless of kind, that are in Amy's entity group (i.e. Amy and Fred), use this query:
SELECT * WHERE ANCESTOR IS KEY('ParentClass', 'ParentClassKey')" but no results
and then i tried to retrieve my children in java: " ParentClass parent = parentClass.get(); DatastoreService datastore = DatastoreServiceFactory.getDatastoreService(); Query q = new Query("ParentClass"); q.addFilter("workerId", Query.FilterOperator.EQUAL, parent.workerId);
PreparedQuery pq = datastore.prepare(q); for(Entity entity : pq.asList(FetchOptions.Builder.withDefaults())){ Query q2 = new Query("ChildClass"); q2.setAncestor(entity.getKey());
// PreparedQuery contains the methods for fetching query results
// from the datastore
PreparedQuery pq2 = datastore.prepare(q2);
for (Entity result : pq2.asIterable()) {
//every pq2 results are empty.
result.getClass().getSimpleName();
result.getParent();
result.getKey();
}
} "
but with no results.
are my entities really related by entity group in gae when i use Many or one relations in siena?