Thanks Didier! Totally forgot that I could read the source from Objectify!!
--
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-java@googlegroups.com.
To unsubscribe from this
Well after studying the source, I guess I will just use 3rd party lib like
Objectify because creating one takes too much time and effort to cover all
GAE datastore API's ground.
Thanks all for the advice!
--
You received this message because you are subscribed to the Google Groups
Google App
do
that? e.g. creationDate is a Date type when saving it as a property of an
entity but where should I define it as a Date type so I don't have to cast
every single type?
Thanks,
Andy
--
You received this message because you are subscribed to the Google Groups
Google App Engine for Java
Thanks both of you. I would like to know the best practice of system design
when using low level api. Like where should I store the property type
information? I could simply use a Map to store the schema for each entity
but then a property sometimes has more than just the type but also
--
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-java@googlegroups.com.
To unsubscribe from this group, send email to
google-appengine-java+unsubscr...@googlegroups.com.
For
hey, thanks.
i did that with DTO class. means every time if i want send the result i
should have to use DTO class objects??
--
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
My code here:
Employee Class:
@PersistenceCapable(identityType =
IdentityType.APPLICATION,detachable=true)
public class Employee implements Serializable {
private static final long serialVersionUID = 1L;
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
I found the sentence in subject line in the following page:
http://code.google.com/appengine/docs/java/datastore/entities.html
It doesn't elaborate more how to achieve that in Java at all, no sample
code, no explanation, no nothing.
We learned the way of creating entity schema for all same
It is possible. Use KeyFactory's static method keytostring() to convert
all your keys to string value. Since String values are portable on any
platform, you can do that easily. Hope this help.
--
You received this message because you are subscribed to the Google Groups
Google App Engine
Thanks for your quick reply.
I actually thought about it again and read it again, it's not just about
updating schema, but the GAE documentation is all about the low level API,
not JDO nor JPA. I am using JDO now so I thought that it is talking about
JDO but it's not.
So here's what I found
I followed the instructions at:
http://googlecode.blogspot.com/2010/05/google-app-engine-basic-text-search.html
but search is only working for exact matches in the column, not partial
strings. Here is my code:
String querystring = request.getParameter(querystring);
querystring = (
Thanks for your reply.
I am not very familiar with shared keyed encryption method, do you have a
link to the resource you can share?
Besides, I think it is beyond encryption, it requires some kind of
authentication also right?
--
You received this message because you are subscribed to the
Hi,
I think I will leverage XMPP as system exchange channel, I will try some
experiments and hopefully that's working.
Thanks,
Andy
--
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
I have the same question but this is leading to much bigger
relationship model.
As students, they may not have many exams, but I am working on an app
for financial institute so a banking client has more than 100,000,000
transactions for different account. Therefore, should I group all
to APP 2?
Any idea?
Thanks,
Andy
--
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, send email to
google-appengine-java
My blobstore code works just great in the dev server (running on Mac)
but I receive an error when uploading to production. I receive an
Error: HTTP method GET is not supported by this URLeven though the
sample refers to post. As I said, works fine in Dev. Please help!
--
You received this
So, I did that, but now I am receiving the following error:
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 19.0px; font:
13.0px Courier New}
java.lang.IllegalStateException: Must be called from a blob upload
callback request
Plus, I needed to change my .jsp form code to a get versus a
According to the docs, creating memcache for an app is easy but where
do I store the Cache reference returned by the CacheFactory? Do I
store it in ServletContext as an attribute? or any other technique?
thanks.
--
You received this message because you are subscribed to the Google Groups
execute this, it always returns all PField instances, did I do
anything wrong?
Thanks,
Andy
--
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
Got it!!!
http://gae-java-persistence.blogspot.com/2010/01/querying-with-key-parameters.html
Thanks Max Ross, the blogger.
Basically I have to use the following syntax instead of regular String
builder:
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; min-height:
15.0px} p.p2
, Google App Engine
Blogger: http://googleappengine.blogspot.com
Reddit: http://www.reddit.com/r/appengine
Twitter: http://twitter.com/app_engine
On Sun, Oct 31, 2010 at 8:38 PM, Andy hksduhk...@gmail.com wrote:
I created unowned key in child objects for query. When I try to query by
the key, I
I created unowned key in child objects for query. When I try to query
by the key, I tried the following because I read the GQL statement:
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco} span.s1
{color: #492df6}
where product = KEY('+KeyFactory.keyToString(product)+'));
But it
I really want to be able to debug step through a Task Queue initiated task
and have it not time out.
http method POST against URL http://0.0.0.0:8080/task/simple timed out.
Also - have you noticed that the dev server does retry tasks that throw
errors?
This is contrary to the docs - the
This is a bit of a stretch for this forum.
Perhaps this explanation will help you understand the database design term.
http://stackoverflow.com/questions/992988/what-is-sharding-and-why-is-it-important
On Mon, Oct 11, 2010 at 4:30 AM, sagar misal sagar1982mi...@gmail.comwrote:
can anyone
The ID for the owned child User instances has to be a Key or String type
because the it contains both the reference to the parent(s) and the unique
id of the object. A Long alone will not contain enough information to
navigate the object model to it. I usually stick with String ids for all my
Does your servlet respond to POST requests?
On Oct 10, 2010 10:28 AM, apple apple...@gmail.com wrote:
I followed the codes in GAE document to make a simple task queue:
Queue queue = QueueFactory.getDefaultQueue();
queue.add(TaskOptions.Builder.method(TaskOptions.Method.GET).url(/
security));
Sorry I don't quite understand your answer, what do you mean
by DataStore Operation?
--
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 helps,
Andy
--
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, send email to
google-appengine-java+unsubscr
in memcache or the datastore.
On 7 Oct 2010, at 20:13, Andy wrote:
Sorry I don't quite understand your answer, what do you mean by DataStore
Operation?
--
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
Not sure why the datastore needs to know that a Car is associated with a
particular User.
There is no easy way for the datastore to handle cascading deletes in a
M-to-M relationship w/o reference counting.
Also setting the Fetch policy to load children with the parent load is not
an option due to
Hi,
I have read the Task API for many times and am still confused about the
web hook. If web hook is asynchronous, where do I get the signal (like
Future) that my task is completed and where do I get the response of
the web hook request?
Thanks,
Andy
--
You received this message because
Thanks for your quick reply Robert.
So is there a way to check the task status by task ID or some sort?
--
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.
Hi x_maras,
re: using email as a primary key
http://code.google.com/appengine/docs/java/users/overview.html
The User object exposes a unique user ID that is guaranteed to be stable for
the lifetime of the user's account, even if the email address is changed.
You can use this value in a datastore
google-appengine-java google-appengine-java@googlegroups.com is probably
the wrong group to ask this question.
http://groups.google.com/group/google-web-toolkit is a better community for
GWT questions.
Also - did your Widget has focus when you used the keyboard?
On Sun, Oct 3, 2010 at 2:30 AM,
Hi Paul,
FWIW, Here is a slightly edited version of my JDO query by id.
Perhaps it can help you get over this bump.
@SuppressWarnings(unchecked)
public Account lookupAccountById( PersistenceManager pm, Long accountId) {
logger.fine(looking up account id= + accountId );
// look up
a domain new_domain. I will then have
www.webpage.com/new_domain/
if I can create this directory at runtime. Thanks again!
On Oct 1, 11:00 am, andy stevko andy.ste...@gmail.com wrote:
No - all local disk write access is not permitted.
http://code.google.com/appengine/docs/java
My only thought is that you should clean your project and have datanucleus
rebuild the persistent classes entirely.
On Wed, Sep 29, 2010 at 2:34 PM, lisandrodc lisandr...@gmail.com wrote:
Hi andy! I have tried delete my local_db and the problem persist.
The exception is in the next code
No - all local disk write access is not permitted.
http://code.google.com/appengine/docs/java/runtime.html
The Filesystem
A Java application cannot use any classes used to write to the filesystem,
such as java.io.FileWriter. An application can read its own files from the
filesystem using classes
Dave is correct the application tag must match the app id.
The version is best incremented from deployment to deployment as well.
This is easily maintained using the eclipse project properties google
appengine tab.
Your web xml url pattern is the problem.
Try using a absolute uri rather than a
Yes, it is simple - You are missing the leading slash in your url-pattern.
Perhaps you can learn how to configure tomcat web.xml files with this very
nice blog post.
http://tomcat-configure.blogspot.com/2009/01/tomcat-web-xml.html
You can also learn how what matches the regular expression by
Ditto on the high error rate on my app too.
app_id=ninuku-archivist
Whats going on here??
On Tue, Sep 28, 2010 at 8:08 AM, mscwd01 mscw...@gmail.com wrote:
I've been getting the second issue you mentioned for the last few
days. Sometimes the error rate is above 50%. Don't expect to get any
integers and double-width
floats), the value is converted, not cast. If the numeric property value is
larger than the field type, the conversion overflows without throwing an
exception.
--Andy
On Sat, Sep 25, 2010 at 1:40 PM, lisandrodc lisandr...@gmail.com wrote:
Hi! Andy I can't change the type
I've managed to make class inheritance work for me using JDO.
The only difference I see between my annotations and yours is I'm using
@Inheritance(customStrategy = complete-table)
InheritanceStrategyhttp://www.datanucleus.org/javadocs/core/1.1/org/datanucleus/metadata/InheritanceStrategy.html
in query history --
datastore-index kind=Quote ancestor=false
property name=state direction=asc/
property name=formattedDate direction=asc/
/datastore-index
/datastore-indexes
and nothing done ?
what can i do else ???
On Sep 18, 1:43 am, andy stevko andy.ste
Seems pretty straight forward You need to define an index for 'Quote'
I suggest looking at
.../war/WEB-INF/appengine-generated/datastore-indexes.xml and
datastore-indexes-auto.xml
and correct the settings.
found these indexes for quote
datastore-index kind=Quote ancestor=false source=auto
property name=state direction=asc/
property name=formattedDate direction=asc/
/datastore-index
what is the problem in it ??
On Sep 18, 12:51 am, andy stevko andy.ste...@gmail.com wrote:
Seems
I was just thinking about this issue during an interview this morning.
I like your initServlet idea and think that it could also be used during
takedown to cleanup any external resources (like batched sequence counters).
An alternative for the scaling from 1 server to many startup problem is to
run appcfg.py vacuum_indexes
as described in
http://code.google.com/appengine/docs/python/datastore/queriesandindexes.html#Big_Entities_and_Exploding_Indexes
On Tue, Sep 14, 2010 at 11:43 AM, Barada Sahu bar...@gmail.com wrote:
Hi,
I need to delete the indexes for my java app as the column
Thanks for your contributions guys. Had got myself a confused with the
need to use AppEngine which, as John points out, I don't need to in
this context.
Andy
On Sep 3, 9:23 am, John Patterson jdpatter...@gmail.com wrote:
You can write a local Java application that reads data using the JDBC
that help?
-Andy
On May 5, 5:41 pm, Ian R. ian.r...@gmail.com wrote:
Can someone help me get started on pulling the event data from the NFL
team calendars that Google provides. I cant seem to find the call to
give me a listing of the eventIds. Am I just blind?
--
You received this message because
You need to do this differently. Serve one HTML page that includes
img src=ServletX?id= tags for your X pictures. The src url for
the pictures then points to a servlet that take the URL parameter of
the picture ID, load the data and write it to the stream.
Servlet code also needs to set the
I'm trying to scale an image after upload (in the doPost method). The
blob key seems to be ok and the image is served after the upload.
Image oldImage = ImagesServiceFactory.makeImageFromBlob(bk);
double aspectRatio = (double) oldImage.getWidth() / (double)
oldImage.getHeight();
-
://www.datanucleus.org/products/accessplatform_1_1/jdo/annotations.html#FetchGroup
Strings and other basic java.lang types are in the default fetch group.
User defined types need to be added to a user named fetch group (or may be
added to the default group).
HTH,
--Andy
On Thu, Dec 3, 2009 at 11:10 PM
This is a common issue. You need to define a @FetchGroup( ) for your class
that names that member then add the FetchGroup to your persistence manager.
@FetchGroup( name=children, members={
@Persistent(name=childcollection)
})
public class
//---
: ';' expected
Is there a way to get the GAE hosted mode server to display JSP
source line level error messages?
Any help would be much appreciated.
Andy
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Google App
55 matches
Mail list logo