The datastore can only count up to 1000 results of a query - for your
model you could use an ancestor query.
You are probably better off keeping a counter in the parent and
updating it every time you add or remove a child. Keep in mind that
all writes to the entire group must be executed s
For example, I want to know a number of children. I guess if I just
call list.size()
it could be expensive. What are other ways?
Thank you,
Andrey
On Apr 12, 4:18 pm, "Ikai L (Google)" wrote:
> No, it should be fine UNLESS you want to load all these child objects in a
> single request. As a ru
Specify ordering in one call
setOrdering("nom ASC, prenom ASC");
This doesn't fix the issue with accented letters though
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@go
package-{datastore}.xml
is there for exactly that purpose.
e.g package-appengine.xml, package-hsqldb.xml, package-oracle.xml
See the DataNucleus docs
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email
I got it working by using the localProxy from
org.datanucleus.store.appengine.LocalDatastoreDelegate
On Apr 13, 2:21 pm, Nick wrote:
> Thanks for the reply.
>
> I have followed those instructions, and I am able to run those tests
> with no problems.
>
> However, I can not set up tests for JDO.
>
Hy, I want to order a query by 'nom' asc and 'prenom' asc :
try {
Query query = null;
query = pm.newQuery(AkroreUser.class);
query.setRange(fromIncl, toExcl);
query.setOrdering("nom ascen
I want to make my model portable across different JDO implementations.
For that, I somtimes need to specify different Metadata for RDBMD and
Appengine. How can I do that?
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to t
Hi Folks,
I'm stumped and I haven't found any references to a solution for this
one. I added to my project the example code you'll find here:
http://code.google.com/appengine/docs/java/tools/localunittesting.html
Eclipse is complaining about the reference to LocalServiceTestHelper
with this mess
I have three Classes (User, Person, Company) that are all subclasses
of BaseClass.
Company has a list of employees
Person may have a user
@PersistenceCapable(detachable="true")
@Inheritance(strategy = InheritanceStrategy.SUBCLASS_TABLE)
public abstract class BaseObject {
@PrimaryKey
@Persist
I am seeing the problem on DevAppServer.
On Apr 13, 3:08 pm, Don Schwarz wrote:
> Are you seeing this problem in the DevAppServer or when deployed to
> our servers? (Or both?)
>
> On Tue, Apr 13, 2010 at 4:27 PM, Rahul Ravikumar wrote:
> > Are there any workarounds for this issue?
>
> > On Apr
Sorry for the duplicate post!!
On 13 Abr, 23:45, TiagoP wrote:
> Can anyone help me here please?
>
> On 13 Abr, 17:13, TiagoP wrote:
>
>
>
> > Yes, they are enabled.
>
> > What I realized now is that the _ah_SESSION variable is not being
> > created,
> > not even on the development server (alth
Can anyone help me here please?
On 13 Abr, 17:13, TiagoP wrote:
> Yes, they are enabled.
>
> What I realized now is that the _ah_SESSION variable is not being
> created,
> not even on the development server (although it works).
>
> On 13 Abr, 17:10, Peter Ondruska wrote:
>
>
>
> > Have you enab
Can anyone help me please?
Thanks
On 13 Abr, 17:10, Peter Ondruska wrote:
> Have you enabled sessions?
> Seehttp://code.google.com/appengine/docs/java/config/appconfig.html#Enab...
>
> On Apr 13, 5:52 pm, TiagoP wrote:
>
>
>
> > Hi,
>
> > I have this code that works just fine on the developmen
Are you seeing this problem in the DevAppServer or when deployed to
our servers? (Or both?)
On Tue, Apr 13, 2010 at 4:27 PM, Rahul Ravikumar wrote:
> Are there any workarounds for this issue?
>
> On Apr 12, 7:48 pm, Rahul Ravikumar wrote:
>> I am using DevAppServer -
>>
>> I have filed an issue
Try this:
query.setFilter("pointsEarned < 0f");
This test case below worked for me:
import
com.google.appengine.tools.development.testing.LocalDatastoreServiceTestConfig;
import
com.google.appengine.tools.development.testing.LocalServiceTestHelper;
import junit.framework.Assert;
import org.jun
Are there any workarounds for this issue?
On Apr 12, 7:48 pm, Rahul Ravikumar wrote:
> I am using DevAppServer -
>
> I have filed an issue
> :http://code.google.com/p/googleappengine/issues/detail?id=3083
>
> You can reproduce the problem using a dispatch servlet and the
> blobstore service toge
Hi:
I think I'm experiencing the same problem. Strangely, I'm sending unicode
(spanish) characters, specially the 'ñ' (spanish N), and I receive them well
in the body part but not in the subject part of the email, where they appear
as a '?'.
I noticed this issue
http://code.google.com/p/googleappe
You can't avoid the extra datastore query. Since we use a key-value store,
store additional details inside a UserDetail class. Instead of referencing
the User in a property (this creates a 1:N relationship between Usersa and
UserDetail), create a Key using KeyFactory.Builder (
http://code.google.co
Hey,
So, I define some entity Foo, and create a hundred thousand instances
of it. Now I want to add a variable of entity type Bar, and want to
specify a default value. Null may be a valid value, but is not the
default.
One solution I've seen around the intertubes is to write a script that
itera
Your quota also includes space for indexes. That's likely the cause of the
discrepancy.
On Tue, Apr 13, 2010 at 6:50 AM, dmitrygusev wrote:
> Hi,
>
> In quota details I can see that I'm using 31% of free quota limit:
>
> Total Stored Data 31% 0.31 of 1.00 GBytes
>
> However if I go to
Thanks for the reply.
I have followed those instructions, and I am able to run those tests
with no problems.
However, I can not set up tests for JDO.
On Apr 13, 11:45 am, Wayne Fay wrote:
> > message, "The type
> > com.google.appengine.tools.development.ApiProxyLocalImpl is not
> > visible".
>
You can get this error if you have jars in your JDK's lib/ext folder. The
dev_appserver generally rejects any classes that are found there, because
that feature doesn't make sense under App Engine. (I.E. you just put your
jars in WEB-INF/lib instead).
On Tue, Apr 13, 2010 at 10:00 AM, hallmit wro
Yes, they are enabled.
What I realized now is that the _ah_SESSION variable is not being
created,
not even on the development server (although it works).
On 13 Abr, 17:10, Peter Ondruska wrote:
> Have you enabled sessions?
> Seehttp://code.google.com/appengine/docs/java/config/appconfig.html
Have you enabled sessions? See
http://code.google.com/appengine/docs/java/config/appconfig.html#Enabling_Sessions
On Apr 13, 5:52 pm, TiagoP wrote:
> Hi,
>
> I have this code that works just fine on the development server but
> when I deploy the application, the session isn't created.
>
> What am
Hi,
I have this code that works just fine on the development server but
when I deploy the application, the session isn't created.
What am I doing wrong?
HttpSession session = req.getSession(true);
session.setAttribute("loggedIn", new String("true"));
--
You received this message because you ar
> message, "The type
> com.google.appengine.tools.development.ApiProxyLocalImpl is not
> visible".
Did you follow the instructions?
http://code.google.com/appengine/docs/java/tools/localunittesting.html
Wayne
--
You received this message because you are subscribed to the Google Groups
"Google
Some posted this issue:
http://code.google.com/p/googleappengine/issues/detail?id=3051
On Tue, Mar 30, 2010 at 11:02 PM, Rahul wrote:
> Ikai,
>
> It doesn't break anything and neither does it stops from deploying but
> it just looks ugly and we might miss the real error if any during the
> depl
I would like to write local unit tests for jdo.
I am following the following tutorial but I get an Eclipse error
message, "The type
com.google.appengine.tools.development.ApiProxyLocalImpl is not
visible".
- http://blog.appenginefan.com/2009/05/jdo-and-unit-tests.html
I have tried all suggested
Can anyone help me?
On Apr 9, 6:47 pm, Denis Chernyshov wrote:
> Here is my full log.
>
> 09.04.2010 12:20:15 org.datanucleus.ObjectManagerImpl
> FINE: Object Manager "org.datanucleus.objectmanageri...@1dfa916" opened for
> datastore "org.datanucleus.store.appengine.datastoremana...@13a1505"
> 0
Update: The serialization is a bug in RPC. I got a workaround for it
but the javax.jdo.JDOException still occurs. :-(
On Apr 13, 3:22 pm, Jochen Schnaidt wrote:
> Hi,
> I’m building an application with GWT and GAE and have a problem saving
> data in the datastore. In my application I generate a l
>From http://code.google.com/appengine/docs/java/datastore/usingjpa.html;
"The App Engine Java SDK includes an implementation of JPA 1.0 for the
App Engine datastore."
But from a couple of days work I've already found the following things
which don't comply with the JPA spec;
- Strings can't be
hi folks,
I've had a very strange issue when I'm deploying my web app in local
server(jetty). I got this message:
Caused by: java.lang.NoClassDefFoundError:
javax.persistence.Persistence is a restricted class. Please see the
Google App Engine developer's guide for more details.
at
com.google.app
Hi,
I’m building an application with GWT and GAE and have a problem saving
data in the datastore. In my application I generate a list which
consists of lists of strings, looks this way: List>
trackList;
It compiles but gives me a warning:
[WARN] Warnings in
generated://D271BF8A9063BFFBB6E2618C9E2
Hi,
I have tried to add the bouncycastle JCE provider in the code.But at
runtime it is throwing java.security.AccessControlException.
is it because of my coding mistake or 'Security.addProvider' is
forbidden by GAE.
the stack trace is here:
java.security.AccessControlException: access denied
(j
I'm an old school Perl programmer from way back and thinking about
getting back into the web_dev game. So I've been reading up on app
engine and have decided to go with Java because I know even less about
Python than I do Java.
But my question is this, how would one go about implementing a user
sy
On 13 Apr 2010, at 19:56, Jake wrote:
I mean, the latest SDK (1.3.2) isn't even in the central repository
yet :)
If it helps you can add this:
twig
http://mvn.twig-persist.googlecode.com/hg
which is kept up-
Hi Fred,
The most detailed samples that I found up to now are in this book:
http://www.amazon.com/Programming-Google-App-Engine-Infrastructure/dp/059652272X/ref=sr_1_1?ie=UTF8&s=books&qid=1271167954&sr=8-1
Many chapters devoted to Datastore in all its aspects. The definite
reading for your needs!
Hi,
In quota details I can see that I'm using 31% of free quota limit:
Total Stored Data 31% 0.31 of 1.00 GBytes
However if I go to Datastore Statistics I see that the Size of all
entities it only 70 MBytes
What uses 310-70=240 MBytes of my database quota?
Also in Datastore Statistic
I tried using GPE 1.3 here:
http://groups.google.com/group/google-appengine-java/browse_thread/thread/2212abc544b3cef5/
However, I never managed to get it working properly and gave up after
a few hours. I currently use plain maven with an Ant script to run
the command line GAE tools. I'll probabl
Hello!
I'm currently writing an app where the datamodel has a set of Category
objects with SubCategory children which represents a classification
tree. I've now gotten to the stage where I'm attempting to apply
these Category and SubCategory objects as attributes of an Item
object, but am getting
Aditya, you need to post (at least) your stack trace to get help.
On Apr 12, 9:30 am, Aditya Rathi wrote:
> I have not modified anything in DWR. But the same code was working with JDO;
> I have migrated it to Objectify keeping the action layer unchanged.
>
> This is working fine on my local envir
41 matches
Mail list logo