I've found the solution (with a help of the others more experienced
colleagues) - basically the idea is to use "select new" JPQL query:

select new domain.SocialProfileData(p.username,
  case when exists (select q.id from ProfileData q where p member of
q.friends)
  then true else false end) from ProfileData p where p.id<>:id

Looks like such an approach would lack caching support for such a
queries (either in hibernate and in anything else) because "select
new" queries create new instance of non-JPA managed entity.

I'm wondering what is the best practice in GAE to deal with such a
task?

On Dec 21, 1:30 pm, Alex Shabanov <[email protected]> wrote:
>...

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to