[appengine-java] Re: Problem with exception on server startup when GAE sdk is in svn

2012-02-22 Thread Max Ross (Google)
It's a bug triggered by the fact that the .svn directories are read-only. If you make those directories writable the problem *should* go away. Please try that out and let me know. Thanks, Max -- You received this message because you are subscribed to the Google Groups Google App Engine for

Re: [appengine-java] Re: Number of writes per second limitation

2011-11-07 Thread Max Ross (Google)
5 put() RPCs plus one more for the commit, although you could use a batch put to turn this into 1 put() RPC plus one more for the commit. These are implementation details though. We may at some point just hold on to the entire mutation until commit time (easy if you're not asking us to generate

[appengine-java] DataNucleus App Engine Plugin v2.0.0-RC1 available for testing

2011-11-01 Thread Max Ross (Google)
JPA 2, JDO 3, unowned relationships, and tons of bug fixes. https://plus.google.com/102837845875216819095/posts/9U9VFWqhPx7 -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit

Re: [appengine-java] Re: JDO and XG transactions - Performance

2011-10-18 Thread Max Ross (Google)
We debated this quite a bit internally. To paraphrase the argument that carried the day: XG transactions are awesome but they are not true global transactions. You're limited to 5 entity groups, you're more likely to see partially applied transactions in global query results, you can get a

[appengine-java] Re: XG Transactions with JDO/JPA

2011-10-13 Thread Max Ross (Google)
Enabling HR locally is described here: http://code.google.com/appengine/docs/java/tools/devserver.html#Using_the_Datastore -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit

[appengine-java] XG Transactions with JDO/JPA

2011-10-12 Thread Max Ross (Google)
Hi everyone, Due to a mix-up, the JDO/JPA jars that are included in the 1.5.5 SDK do *not *support XG Transactions. If you want to use XG Transactions with JDO or JPA in 1.5.5 you can download an updated jar from

Re: [appengine-java] Re: why the development of java tools fall far behind that of python's?

2011-05-26 Thread Max Ross (Google)
I would also point out that it is possible for Java apps to migrate from Master/Slave to High Replication: http://code.google.com/appengine/docs/adminconsole/datastoreadmin.html#Copying_Entities_to_Another_Application Having to create an empty Python version of your app is no doubt clunky and not

Re: [appengine-java] Multiple Async get vs one Sync batch get?

2010-12-17 Thread Max Ross (Google)
Interesting results! I've run similar tests with writes (put and delete) and my results indicate that in most situations, multiple async writes will perform better than one batch sync call. I can't think of any reason this wouldn't be the case for reads as well. Are your entities all in

Re: [appengine-java] Re: datanucleus-appengine

2010-12-03 Thread Max Ross (Google)
There's a big difference between something that is deprecated and something that isn't getting any new features. JDO/JPA is most certainly not deprecated. We are making sure it is keeping pace with our new SDK releases, and we hope to be able to start enhancing it as soon as we can. There is

Re: [appengine-java] no async queries on AsyncDatastoreService for 1.4.0?

2010-11-29 Thread Max Ross (Google)
Hi Luke, First the awesome news: As of 1.4.0, many queries are implicitly asynchronous. When you call PreparedQuery.asIterable() or PreparedQuery.asIterator(), we initiate the query in the background and then immediately return. This lets you do work while the first batch of results is being

Re: [appengine-java] SDK 1.3.8 released!

2010-10-15 Thread Max Ross (Google)
Guillaume, Which FetchOptions class are you looking at? The last update I see to either of them was back in April and they were backwards compatible changes. Thanks, Max On Fri, Oct 15, 2010 at 5:51 AM, Guillaume Laforge glafo...@gmail.comwrote: Excellent, thank you! The instances view is

Re: [appengine-java] Any changes to access levels in com.google.appengine.api.datastore recently?

2010-10-15 Thread Max Ross (Google)
We refactored the internals of the DatastoreService implementation pretty heavily in the release we just pushed out but there shouldn't have been any backwards incompatible changes to the public API. I'm not familiar with appengine-clj. Does it use reflection to access non-public

Re: [appengine-java] Re: CloudCover: Cannot schedule instance of TestClass because of not an available class

2010-07-14 Thread Max Ross (Google)
, but not with the CloudCoverLocalServiceTestHelper. Is there a specific version of App Engine I should be using? I am using 1.3.2. On Jun 12, 11:57 pm, Max Ross (Google) maxr+appeng...@google.commaxr%2bappeng...@google.com wrote: This most likely means that your tests aren't

Re: [appengine-java] CloudCover: Cannot schedule instance of TestClass because of not an available class

2010-06-12 Thread Max Ross (Google)
This most likely means that your tests aren't available as part of your application. Are you certain you uploaded them? On Fri, Jun 11, 2010 at 11:31 PM, Art art...@gmail.com wrote: Dear group, I would like to know how to make CloudCover (http://code.google.com/p/ cloudcover/) work. At

Re: [appengine-java] The API call datastore_v3.Put() is temporarily unavailable.

2010-05-05 Thread Max Ross (Google)
GAE is currently read-only for scheduled maintenance. I recommend subscribing to the google-appengine-downtime-notify group if you'd like to receive notifications of these events: http://groups.google.com/group/google-appengine-downtime-notify/browse_thread/thread/5302cb6b950ce215

Re: [appengine-java] Unable to update app: Error posting to URL: Error 500

2010-05-05 Thread Max Ross (Google)
GAE is currently read-only for scheduled maintenance. I recommend subscribing to the google-appengine-downtime-notify group if you'd like to receive notifications of these events: http://groups.google.com/group/google-appengine-downtime-notify/browse_thread/thread/5302cb6b950ce215

Re: [appengine-java] Re: The API call datastore_v3.Put() is temporarily unavailable.

2010-05-05 Thread Max Ross (Google)
exception... Jerome On May 5, 3:47 pm, Max Ross (Google) maxr+appeng...@google.commaxr%2bappeng...@google.com wrote: GAE is currently read-only for scheduled maintenance. I recommend subscribing to the google-appengine-downtime-notify group if you'd like to receive notifications

Re: [appengine-java] Error uploading project to App Engine

2010-04-28 Thread Max Ross (Google)
GAE is currently read-only for scheduled maintenance. I recommend subscribing to the google-appengine-downtime-notify group if you'd like to receive notifications of these events: http://groups.google.com/group/google-appengine-downtime-notify/browse_thread/thread/4857b46e4e6ff0f9

Re: [appengine-java] Re: ApiProxyLocalImpl class not public

2010-04-26 Thread Max Ross (Google)
What aspect of the local datastore are you trying to configure that isn't covered by LocalDatastoreServiceTestConfig()? I don't think you should have to configure the ApiProxyLocal or the LocalServerEnvironment directly. On Sun, Apr 25, 2010 at 3:40 PM, mvsoares mavsoa...@gmail.com wrote:

Re: [appengine-java] Re: ApiProxyLocalImpl class not public

2010-04-26 Thread Max Ross (Google)
26, 2010 at 1:33 PM, Max Ross (Google) maxr+appeng...@google.com maxr%2bappeng...@google.com wrote: What aspect of the local datastore are you trying to configure that isn't covered by LocalDatastoreServiceTestConfig()? I don't think you should have to configure the ApiProxyLocal

Re: [appengine-java] Re: TaskOptions.countdownMillis not used

2010-04-23 Thread Max Ross (Google)
The dev server used to not execute tasks automatically at all but now the functionality emulates prod pretty closely. On Fri, Apr 23, 2010 at 6:02 AM, James jamesk...@gmail.com wrote: Are you seeing this on the dev server or in production? I vaguely recall reading somewhere that the dev

Re: [appengine-java] Re: TaskOptions.countdownMillis not used

2010-04-23 Thread Max Ross (Google)
The difference between 2 seconds and immediate isn't much. How are you measuring? Do you have logs that show the time at which the task was enqueued and the time at which it executes? Thanks, Max On Fri, Apr 23, 2010 at 12:31 PM, Fabrizio fht...@gmail.com wrote: Production. On Apr 23,

Re: [appengine-java] QueueFactory and NoClassDefFoundError

2010-04-23 Thread Max Ross (Google)
Felipe Quintella Correia felipequintell...@gmail.com I'll be sure it's on the runtime classpath as soon as I am home. Thank you Felipe Quintella 2010/4/22 Max Ross (Google) maxr+appeng...@google.commaxr%2bappeng...@google.com Make sure appengine-api-labs.jar is on your runtime

Re: [appengine-java] QueueFactory and NoClassDefFoundError

2010-04-22 Thread Max Ross (Google)
Make sure appengine-api-labs.jar is on your runtime classpath. Max On Wed, Apr 21, 2010 at 9:00 PM, Felipe Quintella felipequintell...@gmail.com wrote: Hello there. I'm new to Google AppEngine, but I'm already searched and can't find the answer to my problem. I am trying to add a task to

Re: [appengine-java] TaskOptions.countdownMillis not used

2010-04-22 Thread Max Ross (Google)
What is the value of the delay variable? On Thu, Apr 22, 2010 at 1:21 PM, Fabrizio fht...@gmail.com wrote: Hello, I need to add a task in the TaskQueue. But I need a small delay before exectution (2 seconds). I use countdownMillis(long) to delay the execution. But execution starts

Re: [appengine-java] Google: Please, stop using the Builder pattern in the Low-Level API!

2010-04-01 Thread Max Ross (Google)
Hi Jeff, Note that DatastoreServiceConfig exposes a withDefaults() method. FetchOptions has one too but it's package protected. We didn't expose it because FetchOptions isn't required for many low level datastore calls and we didn't see why users would want to create one if they didn't plan to

Re: [appengine-java] com.google.appengine.api.datastore.DatastoreServiceConfig; not resolved by Eclipse with GAE plugin v1.3.2

2010-04-01 Thread Max Ross (Google)
Hi Didier, I can't say what's going on with your plugin but this is almost certainly a classpath issue. DatastoreServiceConfig was introduced in 1.3.2 so make sure you have the appengine-api.jar that shipped with SDK 1.3.2 in your classpath. Max On Thu, Apr 1, 2010 at 4:01 AM, Didier Durand

Re: [appengine-java] Google: Please, stop using the Builder pattern in the Low-Level API!

2010-04-01 Thread Max Ross (Google)
On Thu, Apr 1, 2010 at 11:43 AM, Max Ross (Google) maxr+appeng...@google.com maxr%2bappeng...@google.com wrote: Ok, we'll expose that method. With a public constructor it's very easy to mix up your args, especially when you have args of the same type. For example, someone is pretty much

Re: [appengine-java] Re: Errors after updating to 1.3.2

2010-03-31 Thread Max Ross (Google)
The method that can't be found was added in 1.3.2 so, as John says, this is almost certainly a classpath problem. My guess is that you have an old version of appengine-api.jar on your classpath somewhere. On Tue, Mar 30, 2010 at 8:26 PM, Featheast Lee featheast@gmail.comwrote: I tried to

Re: [appengine-java] Re: Memory Leak in the EntityManagerFactory?

2010-03-15 Thread Max Ross (Google)
be much appreciated. If I can provide any more data for you, please let me know. Thanks! David On Mar 12, 9:37 pm, Max Ross (Google) maxr+appeng...@google.commaxr%2bappeng...@google.com wrote: Thanks for the report David, this certainly seems suspicious

Re: [appengine-java] can not remove with @Order annotation

2010-03-14 Thread Max Ross (Google)
Please post your model object definitions and the stack trace. Thanks! Max On Sun, Mar 14, 2010 at 8:51 PM, Philip Tucker ptuc...@gmail.com wrote: If I annotate a dependent 1:many relationship with @Order(mappedBy = foo), I get a NPE when I try to remove something from the list. When I

Re: [appengine-java] Memory Leak in the EntityManagerFactory?

2010-03-12 Thread Max Ross (Google)
Thanks for the report David, this certainly seems suspicious. There is at least one memory leak I'm aware of but it's related to transactions so that's probably not what you're bumping into. Have you tried taking a heap dump to see what exactly is building up? On Fri, Mar 12, 2010 at 1:27 PM,

Re: [appengine-java] Re: Error when deleting entities - Id cannot be zero

2010-03-12 Thread Max Ross (Google)
What version of the sdk are you using? On Fri, Mar 12, 2010 at 1:36 PM, Pavel Byles pavelby...@gmail.com wrote: Anyone? On Fri, Mar 12, 2010 at 8:41 AM, Pavel Byles pavelby...@gmail.com wrote: I'm trying to delete all entities in my datastore but I receive the following error:

Re: [appengine-java] Re: Error when deleting entities - Id cannot be zero

2010-03-12 Thread Max Ross (Google)
Which version of the App Engine SDK? On Fri, Mar 12, 2010 at 1:43 PM, Pavel Byles pavelby...@gmail.com wrote: GWT: 2.0.3 On Fri, Mar 12, 2010 at 4:38 PM, Max Ross (Google) maxr+appeng...@google.com maxr%2bappeng...@google.com wrote: What version of the sdk are you using? On Fri, Mar 12

Re: [appengine-java] TransactionalTaskException when enqueuing more than 5 tasks

2010-03-08 Thread Max Ross (Google)
Yes, the limit is 5: http://code.google.com/appengine/docs/python/datastore/transactions.html#What_Can_Be_Done_In_a_Transaction On Mon, Mar 8, 2010 at 4:10 AM, JD liva...@gmail.com wrote: I am enqueuing tasks within a transaction. tx.begin() for (int i=0;i10;i++) { Queue queue =

Re: [appengine-java] TransactionalTaskException when enqueuing more than 5 tasks

2010-03-08 Thread Max Ross (Google)
Oops, that was the python link. Java link is http://code.google.com/appengine/docs/java/datastore/transactions.html#What_Can_Be_Done_In_a_Transaction On Mon, Mar 8, 2010 at 10:02 AM, Max Ross (Google) maxr+appeng...@google.com maxr%2bappeng...@google.com wrote: Yes, the limit is 5: http

Re: [appengine-java] What is the purpose of keyName? (Low-level API)

2010-02-22 Thread Max Ross (Google)
:50 AM, Max Ross (Google) maxr+appeng...@google.com maxr%2bappeng...@google.com wrote: 1) Readable-urls. http://yourapp.appspot.com/users/max versus http://yourapp.appspot.com/users/192398411324987 2) The datastore doesn't support uniqueness constraints so a user-defined key is the only

Re: [appengine-java] What is the purpose of keyName? (Low-level API)

2010-02-22 Thread Max Ross (Google)
or not, there exists a class of problems where a user-defined string pk is a necessary part of the solution. Regards, Max On Mon, Feb 22, 2010 at 1:52 PM, Jeff Schnitzer j...@infohazard.org wrote: On Mon, Feb 22, 2010 at 1:19 PM, Max Ross (Google) maxr+appeng...@google.com maxr%2bappeng...@google.com wrote

Re: [appengine-java] NullPointerException at Transaction.commit()

2010-02-17 Thread Max Ross (Google)
Can you please post your model object definitions for Employee and Department? Thanks, Max On Mon, Feb 15, 2010 at 11:53 PM, sushama sush.khadil...@gmail.com wrote: import java.util.List; import javax.jdo.JDOHelper; import javax.jdo.PersistenceManager; import

Re: [appengine-java] How to get testing working with anything other than the default queue

2010-02-16 Thread Max Ross (Google)
() { return lse.getPort(); } public void waitForServerToStart() throws InterruptedException { lse.waitForServerToStart(); } }; } }; On Tue, Feb 16, 2010 at 9:35 AM, Max Ross (Google) maxr

Re: [appengine-java] Re: How to get testing working with anything other than the default queue

2010-02-16 Thread Max Ross (Google)
, Max Ross (Google) maxr+appeng...@google.commaxr%2bappeng...@google.com wrote: Hi Will, You're loading queue.xml from a different location in your unit tests? This is a use case I didn't thoroughly consider. I can certainly fix this for the next release but let me see if I can find

Re: [appengine-java] Re: How to get testing working with anything other than the default queue

2010-02-16 Thread Max Ross (Google)
to make sure a certain function puts x number tasks in a queue that is not the default. It doesn't load the queue.xml file unless I use your workaround (then it works great.) On Feb 16, 10:21 am, Max Ross (Google) maxr+appeng...@google.commaxr%2bappeng...@google.com wrote: By default

Re: [appengine-java] Re: How to get testing working with anything other than the default queue

2010-02-16 Thread Max Ross (Google)
seem to find it. On Feb 16, 10:47 am, Max Ross (Google) maxr+appeng...@google.commaxr%2bappeng...@google.com wrote: I see. In the test environment it looks in . by default so if you place queue.xml in the directory from which you're executing the test it should pick it up.I

Re: [appengine-java] Re: App Engine SDK 1.3.1 is out!

2010-02-12 Thread Max Ross (Google)
(); pm.makePersistentAll(entities); // it throws exception if it compiled using sdk1.3.1. tx.commit(); Full source code is here.https://test-gae-j-sdk-131.googlecode.com/hg/ On 2月12日, 午前3:11, Max Ross (Google) maxr+appeng...@google.commaxr%2bappeng...@google.com wrote: Assuming

[appengine-java] JDO/JPA Snippets That Work - The Truth About Joins

2010-02-12 Thread Max Ross (Google)
http://gae-java-persistence.blogspot.com/2010/02/truth-about-joins.html -- 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...@googlegroups.com. To unsubscribe from this group,

Re: [appengine-java] Re: How to use junit test in the newest SDK1.3.1

2010-02-11 Thread Max Ross (Google)
Subclassing LocalServiceTestHelper and overriding newEnvironment() should work fine. What does your implementation of newEnvironment() look like? On Wed, Feb 10, 2010 at 7:35 PM, Krishna krishnacal...@gmail.com wrote: Ok! But when I'm using transactions I'm getting:

Re: [appengine-java] Re: App Engine SDK 1.3.1 is out!

2010-02-11 Thread Max Ross (Google)
Assuming a ClassA object with the specified id already exists, the code you've posted works fine for me. Could you put together a complete example that demonstrates the unexpected behavior? Thanks, Max On Wed, Feb 10, 2010 at 7:49 PM, vori vori...@gmail.com wrote: Is it a bug on JDO of SDK

Re: [appengine-java] Re: How to use junit test in the newest SDK1.3.1

2010-02-11 Thread Max Ross (Google)
() { return new TestEnvironment(); } Thanks, Krishna 2010/2/11 Max Ross (Google) maxr+appeng...@google.commaxr%2bappeng...@google.com : Subclassing LocalServiceTestHelper and overriding newEnvironment() should work fine. What does your implementation of newEnvironment() look like

Re: [appengine-java] Re: How to use junit test in the newest SDK1.3.1

2010-02-11 Thread Max Ross (Google)
...@gmail.comwrote: You're right! I refactored my code and forget to annotate the new setUp method with @Before. Sorry for taking your time! It works now. Thanks, Krishna 2010/2/11 Max Ross (Google) maxr+appeng...@google.commaxr%2bappeng...@google.com : Your code looks fine. Are you

Re: [appengine-java] Re: getNextID

2010-02-10 Thread Max Ross (Google)
Both value-strategy of SEQUENCE and the standalone sequences work. See http://code.google.com/p/datanucleus-appengine/source/browse/trunk/tests/org/datanucleus/test/SequenceExamplesJDO.java and

Re: [appengine-java] java.lang.VerifyError

2010-02-09 Thread Max Ross (Google)
Hi Steve, thanks for bringing this to our attention. We've identified a problem on our end and we're in the process of correcting it. You're of course free to continue using an older version of the SDK, but newer versions are not susceptible to this problem. Max On Tue, Feb 9, 2010 at 5:56 AM,

Re: [appengine-java] VerifyError on StreamingQueryResult

2010-02-09 Thread Max Ross (Google)
Thanks for the report. This is indeed the same issue. We're testing a fix now and hope to have this resolved very soon. Max On Tue, Feb 9, 2010 at 4:27 AM, paweł majewski swiatloczuli...@gmail.comwrote: Look similar to

Re: [appengine-java] Re: getNextID

2010-02-09 Thread Max Ross (Google)
JDO Sequences work, we just haven't publicized them. The DataNucleus docs should tell you everything you need to know: http://www.datanucleus.org/products/accessplatform/jdo/sequences.html IdGeneratorStrategy.INCREMENT is not yet implemented. What are you looking to use it for? Max On Mon,

Re: [appengine-java] Re: getNextID

2010-02-09 Thread Max Ross (Google)
. for example, Employee. -Aswath On Wed, Feb 10, 2010 at 5:49 AM, Max Ross (Google) maxr+appeng...@google.com maxr%2bappeng...@google.com wrote: JDO Sequences work, we just haven't publicized them. The DataNucleus docs should tell you everything you need to know: http://www.datanucleus.org/products

Re: [appengine-java] Task queues and transaction support

2010-01-25 Thread Max Ross (Google)
Hi JD, We released the api for this feature ahead of the backend support so you'll need to wait for the next release (currently making its way through QA) to be able to take advantage of transactional tasks. Once the feature is enabled, tasks that are added to queues when there is an active

Re: [appengine-java] Wildcard must appear at the end of the expression string (only prefix matches are supported)

2010-01-14 Thread Max Ross (Google)
Thanks for the report Steve, looks like a bug. The information in the error message is still relevant though. The datastore does not support real regular expression matching, but rather just startsWith filters. So, if your regex can be rewritten to use GrpName.startsWith() then you can use that

Re: [appengine-java] Re: Unexpected error during precommit, with owned relation, if childList is null

2010-01-12 Thread Max Ross (Google)
Hi Kemal, thanks for the report. I can reproduce the exception and I can make the exception go away by removing the column = F_PK attributes from the @Persistent annotations. I don't yet know why this is causing a problem but overriding the name of a primary key column doesn't do anything (the

Re: [appengine-java] Re: Unexpected error during precommit, with owned relation, if childList is null

2010-01-12 Thread Max Ross (Google)
Fixed in trunk On Tue, Jan 12, 2010 at 12:56 PM, Max Ross (Google) maxr+appeng...@google.com maxr%2bappeng...@google.com wrote: Sure, glad I could help. On Tue, Jan 12, 2010 at 12:52 PM, Kemal Dogan kemal.m...@gmail.comwrote: hi max, thanks you very much. On Tue, Jan 12, 2010 at 10:44

Re: [appengine-java] No JDO support for datanucleus ObjectStringConverter?

2010-01-11 Thread Max Ross (Google)
I'm sorry to report that we have not yet hooked in support for ObjectStringConverter. It shouldn't be too difficult though and I can definitely see how it would be useful. Please file an issue and we'll get to it as soon as we can. http://code.google.com/p/datanucleus-appengine/issues/list

Re: [appengine-java] Persist/query test.test1.Test and test.test2.Test

2010-01-11 Thread Max Ross (Google)
By default the kind of the datastore entity is derived from the simple name of the class, and test.test1.Test.class.getSimpleName() is the same as test.test2.Test.class.getSimpleName(). This is documented here:

Re: [appengine-java] multiple contains() clauses on the same table

2010-01-08 Thread Max Ross (Google)
Thanks for the report, looks like a bug. Multiple contains() clauses are fine but I didn't properly account for the case where one of the clauses is on the primary key of the object. The fix should be straightforward but let me see if I can get you a workaround. Max On Thu, Jan 7, 2010 at 7:06

Re: [appengine-java] multiple contains() clauses on the same table

2010-01-08 Thread Max Ross (Google)
, Jan 8, 2010 at 9:48 AM, Max Ross (Google) maxr+appeng...@google.commaxr%2bappeng...@google.com wrote: Thanks for the report, looks like a bug. Multiple contains() clauses are fine but I didn't properly account for the case where one of the clauses is on the primary key of the object. The fix

Re: [appengine-java] multiple contains() clauses on the same table

2010-01-08 Thread Max Ross (Google)
Issued filed: http://code.google.com/p/datanucleus-appengine/issues/detail?id=185 On Fri, Jan 8, 2010 at 10:12 AM, Max Ross (Google) maxr+appeng...@google.com maxr%2bappeng...@google.com wrote: I'm really sorry but I've been unable to construct an equivalent query that avoids this bug

Re: [appengine-java] [ANN] DataNucleus AccessPlatform 2.0 released

2010-01-08 Thread Max Ross (Google)
Congrats on the release Andy! The App Engine DataNucleus plugin is not going to work out-of-the-box with DN 2.0 so please wait until we (Google) update our stuff. This is going to take some time for us but we will get it taken care of. Max On Fri, Jan 8, 2010 at 9:44 AM, Rusty Wright

Re: [appengine-java] multiple contains() clauses on the same table

2010-01-08 Thread Max Ross (Google)
Fixed in trunk. On Fri, Jan 8, 2010 at 10:31 AM, Max Ross (Google) maxr+appeng...@google.com maxr%2bappeng...@google.com wrote: Issued filed: http://code.google.com/p/datanucleus-appengine/issues/detail?id=185 On Fri, Jan 8, 2010 at 10:12 AM, Max Ross (Google) maxr+appeng...@google.com

Re: [appengine-java] Query with inequality operators on a single property fails

2010-01-05 Thread Max Ross (Google)
Implicit parameters need to be prefixed with a ':' query.setFilter(dueDate = :beginDateParam dueDate = :endDateParam); Max On Tue, Jan 5, 2010 at 10:53 AM, dantuluri pdantul...@gmail.com wrote: Hi, I have the following query with inequality operators on a single property: query =

Re: [appengine-java] SUBSTRING function for JPA

2010-01-04 Thread Max Ross (Google)
It's not implemented. Could you please file a bug? http://code.google.com/p/datanucleus-appengine/issues/list Thanks, Max On Sun, Jan 3, 2010 at 7:16 AM, Wong lhw...@gmail.com wrote: SUBSTRING function for JPA is not working. entityManager.createQuery(SELECT SUBSTRING(v.name, 1, 3) from

[appengine-java] JDO/JPA Snippets That Work - More compact @PersistenceCapable declarations

2009-12-30 Thread Max Ross (Google)
http://gae-java-persistence.blogspot.com/2009/12/more-compact-persistencecapable.html -- 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...@googlegroups.com. To unsubscribe from

Re: [appengine-java] Simple one to many problem!!!

2009-12-30 Thread Max Ross (Google)
I'd recommend basing your code on the example here to get something working: http://gae-java-persistence.blogspot.com/2009/10/creating-bidrectional-owned-one-to-many.html Then you can start tweaking. Max On Wed, Dec 30, 2009 at 3:02 PM, markm208 markm...@gmail.com wrote: I am thoroughly

Re: [appengine-java] Simple one to many problem!!!

2009-12-30 Thread Max Ross (Google)
their parents. If you switch em.persist(search) to em.persist(member) you should be fine. Max On Wed, Dec 30, 2009 at 3:22 PM, Max Ross (Google) maxr+appeng...@google.com maxr%2bappeng...@google.com wrote: I'd recommend basing your code on the example here to get something working: http://gae-java

Re: [appengine-java] Unindexed property

2009-12-23 Thread Max Ross (Google)
Looks like you're using the JPA Extension annotation. If you're using JDO, use javax.jdo.annotations.Extension. On Wed, Dec 23, 2009 at 8:50 AM, Peter Ondruska peter.ondru...@gmail.comwrote: I have set few properties unindexed like this: @Persistent @Extension(vendorName =

Re: [appengine-java] StackOverFlowError on JPA Remove() with @OneToMany and abstract base classes.

2009-12-23 Thread Max Ross (Google)
Workaround posted to the bug. Thanks! On Sun, Dec 20, 2009 at 6:22 AM, David Fuelling sappe...@gmail.com wrote: I'm pretty sure my issue is a bug, but upon further reflection I figured I'd bring it to light here in the discussion groups just to be sure. Here's the issue, with test code:

Re: [appengine-java] Re: Any advantages on using the Key type instead of String or Long for PK

2009-12-22 Thread Max Ross (Google)
Please note that you can still query a Key primary key using comparison, you just can't do it the exact way you've written your example: pm.newQuery(select from Person where key = :p).execute(person.getKey()); On Tue, Dec 22, 2009 at 6:30 AM, Michael Chan hsmc...@gmail.com wrote: Thanks a

Re: [appengine-java] IdGeneratorStrategy.SEQUENCE

2009-12-21 Thread Max Ross (Google)
Hi Philip, IdGeneratorStrategy.SEQUENCE support is implemented on top of DatastoreService.allocateIds(), which is itself the mechanism that the datastore uses internally to assign ids. So, all properties of datastore id allocation apply to SEQUENCE. There is a lot of good information about

Re: [appengine-java] Re: IdGeneratorStrategy.SEQUENCE

2009-12-21 Thread Max Ross (Google)
as a true sequence, or do I need to create my own sequence and assign the value myself? On Dec 21, 9:29 am, Max Ross (Google) maxr+appeng...@google.commaxr%2bappeng...@google.com wrote: Hi Philip, IdGeneratorStrategy.SEQUENCE support is implemented on top of DatastoreService.allocateIds

Re: [appengine-java] preparedQuery.asQueryResultList and Cursor

2009-12-17 Thread Max Ross (Google)
Hi Laco, We're actively working on the Cursors feature but it's not finished yet. The api for this feature went out in the latest SDK but the backend changes did not, which explains the exceptions you're seeing. Cursors will be available in our next release, due out early next year. Thanks, Max

Re: [appengine-java] com.google.appengine.api.datastore.Text with JPA

2009-12-16 Thread Max Ross (Google)
Try adding @Basic. More info here: http://code.google.com/appengine/docs/java/datastore/usingjpa.html#Class_and_Field_Annotations On Tue, Dec 15, 2009 at 11:55 PM, Compi lauwers@gmail.com wrote: Hey Everyone, I can't seem to get this working. How do you save and read

Re: [appengine-java] Re: TaskQueue and null host name

2009-12-16 Thread Max Ross (Google)
Yup, it's a bug. Would you mind filing it in the issue tracker? I'll get it sorted out for the next release. Thanks, Max On Wed, Dec 16, 2009 at 9:34 AM, Max Ross (Google) maxr+appeng...@google.com maxr%2bappeng...@google.com wrote: Interesting, let me take a look. On Tue, Dec 15, 2009

Re: [appengine-java] One to many with JPA

2009-12-16 Thread Max Ross (Google)
I'd recommend reading this blog post - it contains everything you need to know to persist a one-to-many with JPA: http://gae-java-persistence.blogspot.com/2009/10/creating-bidrectional-owned-one-to-many.html Max On Wed, Dec 16, 2009 at 2:21 PM, Richard richard.fa...@gmail.com wrote: Hi guys,

Re: [appengine-java] TaskQueue and null host name

2009-12-15 Thread Max Ross (Google)
Where is your code that adds the task to the queue? Is it being run during server initializaiton, perhaps as part of a static block or a LoadOnStartup servlet? Thanks, Max On Tue, Dec 15, 2009 at 8:27 AM, Millisecond millisec...@gmail.com wrote: Hello, I'm just testing out super basic

Re: [appengine-java] Re: Class XXX has multiple relationship fields of type YYYY

2009-12-14 Thread Max Ross (Google)
wondering if that is actually working or still a pre-release item (didn't see anything in the docs about it). Thanks! david On Dec 10, 11:24 pm, Max Ross (Google) maxr+appeng...@google.commaxr%2bappeng...@google.com wrote: I've made a backwards-compatible bug fix release candidate available

Re: [appengine-java] Re: new in 1.2.8: relationship fields of type parent class that isn't even persisted. This is not yet supported.

2009-12-14 Thread Max Ross (Google)
myself), here is a link to instructions Max wrote on how to install a new plugin version into the SDK: http://code.google.com/p/datanucleus-appengine/wiki/HowToUpdateTheSDKWithANewPluginVersion Regards, J5 On Dec 10, 11:59 am, Max Ross (Google) maxr+appeng...@google.commaxr

Re: [appengine-java] Re: new in 1.2.8: relationship fields of type parent class that isn't even persisted. This is not yet supported.

2009-12-14 Thread Max Ross (Google)
of having multiple parent classes for a given child class. Although, it would be nice if a child class could have different parent types. Thanks for all your help Max. -bryce On Mon, Dec 14, 2009 at 11:30 AM, Max Ross (Google) maxr+appeng...@google.com maxr%2bappeng...@google.com wrote: I

Re: [appengine-java] Re: new in 1.2.8: relationship fields of type parent class that isn't even persisted. This is not yet supported.

2009-12-14 Thread Max Ross (Google)
pm, Max Ross (Google) maxr+appeng...@google.commaxr%2bappeng...@google.com wrote: Ok I've got good news for you. I need to do more testing but I think different parent types for child objects should work fine as long as you use list-ordering for your one-to-many relationships, which you

Re: [appengine-java] Re: new in 1.2.8: relationship fields of type parent class that isn't even persisted. This is not yet supported.

2009-12-14 Thread Max Ross (Google)
, 2009 at 9:06 PM, Max Ross (Google) maxr+appeng...@google.com maxr%2bappeng...@google.com wrote: Ok I've got good news for you. I need to do more testing but I think different parent types for child objects should work fine as long as you use list-ordering for your one-to-many relationships

Re: [appengine-java] Re: new in 1.2.8: relationship fields of type parent class that isn't even persisted. This is not yet supported.

2009-12-14 Thread Max Ross (Google)
anticipate this being a huge problem, heck I could sort the set after it gets out of the datastore if I had to using a displayOrder field or something. I don't want to bog down my performance doing this through some implicit index. thanks, -bryce On Mon, Dec 14, 2009 at 11:04 PM, Max Ross (Google

Re: [appengine-java] Re: problems with SDK 1.2.8 and (local) task queues timing out...

2009-12-11 Thread Max Ross (Google)
Please re-read the thread leading up to your post. The timeout shouldn't impact the completion of the request on the server. If you're seeing something different please let me know. Thanks, Max On Thu, Dec 10, 2009 at 10:26 PM, Heyali heyal...@gmail.com wrote: I am also facing simmilar

Re: [appengine-java] Local Task queues not rate limited in 1.2.8

2009-12-11 Thread Max Ross (Google)
Hi Sam, Please read this section of the docs: http://code.google.com/appengine/docs/java/taskqueue/overview.html#Task_Queues_and_the_Development_Server It describes the differences between production task queues and local task queus and explains how to switch back to the old method of manually

Re: [appengine-java] Inherit one-to-many relationship

2009-12-10 Thread Max Ross (Google)
Found and fixed the issue: http://code.google.com/p/datanucleus-appengine/issues/detail?id=171 On Wed, Dec 9, 2009 at 11:48 AM, Max Ross (Google) maxr+appeng...@google.com maxr%2bappeng...@google.com wrote: Could you please post all the model objects that are involved in the example? Looks

Re: [appengine-java] Inherit one-to-many relationship

2009-12-10 Thread Max Ross (Google)
I've posted a bug fix release candidate containing this fix here: http://datanucleus-appengine.googlecode.com/files/appengine-orm-1.0.4.1.RC1.zip On Thu, Dec 10, 2009 at 11:51 AM, Max Ross (Google) maxr+appeng...@google.com maxr%2bappeng...@google.com wrote: Found and fixed the issue: http

Re: [appengine-java] Re: Class XXX has multiple relationship fields of type YYYY

2009-12-10 Thread Max Ross (Google)
I've made a backwards-compatible bug fix release candidate available at http://code.google.com/p/datanucleus-appengine/downloads/list The release contains a fix for this issue and also renames the config property to datanucleus.appengine.allowMultipleRelationsOfSameType Max On Thu, Dec 10, 2009

Re: [appengine-java] Re: oid is not instanceof javax.jdo.identity.ObjectIdentity

2009-12-09 Thread Max Ross (Google)
, *not the same instance*, but just the same type. Is there any other way (besides just using Key instances) you can think of that would accomplish what I am after? thanks again, -bryce On Tue, Dec 8, 2009 at 7:21 PM, Max Ross (Google) maxr+appeng...@google.com maxr%2bappeng...@google.com wrote

Re: [appengine-java] Inherit one-to-many relationship

2009-12-09 Thread Max Ross (Google)
Thanks for the report, investigating now On Tue, Dec 8, 2009 at 2:33 PM, Pierre Lavignotte pierre.lavigno...@gmail.com wrote: Hi, I have a problem when I try to inherit a one-to-many relation ship from a base entity class. The following model works fine :

Re: [appengine-java] Inherit one-to-many relationship

2009-12-09 Thread Max Ross (Google)
Could you please post all the model objects that are involved in the example? Looks like SpeciesStats is missing. Also, it would be great if you could post the code that shows how you populate the Community object before persisting. Thanks, Max On Wed, Dec 9, 2009 at 11:40 AM, Max Ross (Google

Re: [appengine-java] Re: oid is not instanceof javax.jdo.identity.ObjectIdentity

2009-12-08 Thread Max Ross (Google)
/jdotest you should execute the test case that is failing for me. I really appreciate your taking a look at this. I'm looking forward to getting it working. -bryce On Tue, Dec 1, 2009 at 10:15 PM, Max Ross (Google) maxr+appeng...@google.com maxr%2bappeng...@google.com wrote

Re: [appengine-java] Re: database transaction problem

2009-12-08 Thread Max Ross (Google)
Hi Len, attempted to deregister a transaction that is not currently registered is an error thrown by the datastore api when a call is made to commit a txn and there is no txn to commit. Is it possible you have some path through your code that would result in calling commit() more than once or

Re: [appengine-java] Re: new in 1.2.8: relationship fields of type parent class that isn't even persisted. This is not yet supported.

2009-12-08 Thread Max Ross (Google)
I've filed bug http://code.google.com/p/datanucleus-appengine/issues/detail?id=169 to track the problem with non-persistent base classes. I have a fix in the works. I'll be posting a release candidate with this fix and hopefully a few others in the next day or two. Thanks, Max On Tue, Dec 8,

Re: [appengine-java] Re: oid is not instanceof javax.jdo.identity.ObjectIdentity

2009-12-08 Thread Max Ross (Google)
On Dec 8, 2009 10:14 AM, Max Ross (Google) maxr+appeng...@google.commaxr%2bappeng...@google.com wrote: Hi Bryce, I started digging into you issue and quickly bumped into the Multiple relationships of the same type bug for which I posted the workaround. Then I got bogged down with unrelated

Re: [appengine-java] Re: oid is not instanceof javax.jdo.identity.ObjectIdentity

2009-12-08 Thread Max Ross (Google)
Filed http://code.google.com/p/datanucleus-appengine/issues/detail?id=170 On Tue, Dec 8, 2009 at 6:18 PM, Max Ross (Google) maxr+appeng...@google.commaxr%2bappeng...@google.com wrote: Ok I think I know what's going on. First here's a stripped down version of your object model with the bare

Re: [appengine-java] Re: 1.2.8 SDK Prerelease - help us verify!

2009-12-07 Thread Max Ross (Google)
://groups.google.com/group/google-appengine-java/msg/8f5872b05214... out.put(com.google.appengine.server_url_key, http:// localhost:8080); return out; } }; A+, Dom -- On Dec 3, 7:01 pm, Max Ross (Google) maxr+appeng...@google.commaxr%2bappeng

  1   2   >