Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Build Query object from query string
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Xybrek  
View profile  
 More options Nov 2 2012, 12:56 pm
From: Xybrek <xyb...@gmail.com>
Date: Fri, 2 Nov 2012 09:56:34 -0700 (PDT)
Local: Fri, Nov 2 2012 12:56 pm
Subject: Build Query object from query string

Is it possible to build a Query object with Objectify with a query string?
I mean, I know Objectify builds queries like:

Query<Foo> q = ofy().load().type(Foo.class);
q = q.filter("bar", b);

However, is there a way or any plans for Objectify to have the ability to
build Query objects from query string like:

String query = "SELECT * FROM Foo WHERE bar = b";List<Foo> foo = ofy().buildQuery(query).asList();


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeff Schnitzer  
View profile  
 More options Nov 2 2012, 1:41 pm
From: Jeff Schnitzer <j...@infohazard.org>
Date: Fri, 2 Nov 2012 13:41:39 -0400
Local: Fri, Nov 2 2012 1:41 pm
Subject: Re: [objectify-appengine] Build Query object from query string

There is not currently any plan.  If you want to build some sort of parser,
we might consider including it... but this is a nontrivial feature.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Xybrek  
View profile  
 More options Nov 2 2012, 4:32 pm
From: Xybrek <xyb...@gmail.com>
Date: Fri, 2 Nov 2012 13:32:47 -0700 (PDT)
Local: Fri, Nov 2 2012 4:32 pm
Subject: Re: [objectify-appengine] Build Query object from query string

I've done parsers in the past but that was with C++, but I can consider
doing this. Also, I am pretty sure that SQL-like queries may not be much
suitable for building query objects.
I may need to fully understand the full extent feature of the Query class,
the depth and the full list of possible query combinations. I find this
idea really fun, not considering that we really need this for our project
coz' we have a system that is built on triggering SQL scripts in the
backend, and we need to reuse it with our AppEngine port of the system.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Xybrek  
View profile  
 More options Nov 2 2012, 4:37 pm
From: Xybrek <xyb...@gmail.com>
Date: Fri, 2 Nov 2012 13:37:21 -0700 (PDT)
Local: Fri, Nov 2 2012 4:37 pm
Subject: Re: [objectify-appengine] Build Query object from query string

While thinking of doing this feature, for me to move on with our project,
is it possible that JPA and Objectify to work together, that is persisted
Entities using Objectify be queried by JPA and vice versa?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeff Schnitzer  
View profile  
 More options Nov 3 2012, 11:41 am
From: Jeff Schnitzer <j...@infohazard.org>
Date: Sat, 3 Nov 2012 11:41:55 -0400
Local: Sat, Nov 3 2012 11:41 am
Subject: Re: [objectify-appengine] Build Query object from query string

You should have no trouble using JPA and Objectify in the same project as
long as you keep the entity classes in sync.  Although, if you are going to
go through that trouble, why not just use JPA?

The only major impedance mismatches will be polymoprhism, some edge cases
in @Embed collections (specifically null handling), and partial indexes
(which don't exist in JPA).

Jeff


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Xybrek  
View profile  
 More options Nov 9 2012, 5:54 am
From: Xybrek <xyb...@gmail.com>
Date: Fri, 9 Nov 2012 02:54:28 -0800 (PST)
Local: Fri, Nov 9 2012 5:54 am
Subject: Re: [objectify-appengine] Build Query object from query string

This is actually one of my "crazy" idea mainly because we have an old
system that I ported with AppEngine and it only knows JDBC and JPA queries,
but I don't want to do JPA as it is very hard to maintain, I'd rather use
Objectify.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »