Questions tagged [objectify]

Objectify is a 3rd party Java data access API specifically designed for Google Cloud Datastore in the App Engine Standard runtime. It occupies a "middle ground"; easier to use and more transparent than JDO or JPA, but significantly more convenient than the Low-Level API provided for Cloud Datastore.

Objectify is a 3rd party Java data access API specifically designed for Google Cloud Datastore in the App Engine Standard runtime. It occupies a "middle ground"; easier to use and more transparent than JDO or JPA, but significantly more convenient than the Low-Level API provided for Cloud Datastore.

It also integrates with the App Engine memcache and taskqueue APIs to simplify common patterns of working with Cloud Datastore.

The Cloud Datastore low-level Java API for App Engine Standard is simple and elegant, neatly reducing your data operations to four simple methods: get, put, delete, and query. However, it is not designed to be used by the average developer:

  • DatastoreService persists GAE-specific Entity objects rather than normal POJO classes.
  • DatastoreService Keys are untyped and error-prone.
  • DatastoreService has a machine-friendly but not human-friendly query interface.
  • DatastoreService has an unnecessarily complicated transaction API.

Objectify provides a convenient layer which addresses these issues, yet preserves the elegance of get, put, delete, and query.

1145 questions
6
votes
1 answer

Objectify List> not serialized by Google App Engine endpoints

Hi have two related Entities: Customers and Cars. Each Customer can own several Cars This is a summarized view of the entities: public class Customer { //Inner classes for partial loads public static class NoCars{} @Id protected String…
cvigo
  • 415
  • 3
  • 10
6
votes
1 answer

java.lang.IllegalArgumentException: can't accept class com.veersoft.gwt.shared.trailbalance.TrailBalanceClassResult as a memcache entity

Inorder to make my application faster, I'm using the MemcacheService. Now, while I'm trying to put an object into the MemcacheService, I'm getting the following error: java.lang.IllegalArgumentException: can't accept class…
Sarath Upadrista
  • 473
  • 4
  • 19
6
votes
1 answer

GeoSpatial Radius Search Using Objectify

I am developing an application using GeoModel. I need to perform search in a particular radius based on the given latitude and longitude. I am able to generate the GeoCells in the datastore using Objectify, but not able to get back the results in a…
Ankur Jain
  • 1,386
  • 3
  • 17
  • 27
6
votes
3 answers

Objectify - how to @Load a List>?

I have an entity, with a field containing a list to Refs to other entities (always 4). I'm trying to get some entities, and dispatch them for a jsp for display. I want all the Refs in the field to be loaded as well, and to access them in the…
Moshe Shaham
  • 15,448
  • 22
  • 74
  • 114
6
votes
1 answer

Is there any way or any framework in python to create an object model from a xml?

for example my xml file contains :
Pooya
  • 4,385
  • 6
  • 45
  • 73
5
votes
4 answers

How do I create many-to-many relationships with Objectify on Google App Engine?

I can't find any documentation on the appropriate way to make a many-to-many relationship between objects using Objectify on Google App Engine. Can anyone explain how to do this? Do I need to create a new "join" class for this? How efficient will…
sanity
  • 35,347
  • 40
  • 135
  • 226
5
votes
1 answer

Objectify paging

Can you find a good tutorial or documentation about achieving a good pagination in a Google App Engine Objectify world? I found some posts: http://groups.google.com/group/objectify-appengine/browse_thread/thread/b640b5d377b620b4 But nothing seems to…
Fabio B.
  • 9,138
  • 25
  • 105
  • 177
5
votes
2 answers

how to insert record in objectify entity having one-to-one or one-to-many relationship in android

i have model of class City like below: @Entity public class City { @Id Long id; String name; public String getName() { return name; } public void setName(String name) { this.name = name; } I have another…
5
votes
4 answers

Fastest way to check if an object exists

I'm using GAE/Java with Objectify, and I'm trying to find the fastest way to check if a given object exists in the datastore, given the key. What I'm doing right now is .get(key) with @Cached on, but either way that still retrieves the entire…
Sudhir Jonathan
  • 16,998
  • 13
  • 66
  • 90
5
votes
1 answer

Can Google App Engine Modules share source code just like Maven Modules?

I'm using Google App Engine to create a project consisting of multiple Google Modules. How do I set up my project (using Maven) so that I can share source code such as Objectify object model definitions, shared utility code, and unit test code…
Michael Osofsky
  • 11,429
  • 16
  • 68
  • 113
5
votes
2 answers

Objectify return List & Cursor

I am trying to use a cursor with Objectify and Google App Engine to return a subset of data and a cursor so that I can retrieve more data when the user is ready. I found an example here that looks exactly like what I need but I don't know how to…
easycheese
  • 5,859
  • 10
  • 53
  • 87
5
votes
1 answer

Objectify loads object behind Ref even when @Load is not specified

I have an account object which references a user object. @Cache @Entity public final class Account { @Id Long id; @Index private Ref user; public Long getId() { return id; } public void setId(Long id) { …
Oliver Hausler
  • 4,900
  • 4
  • 35
  • 70
5
votes
3 answers

Slow deserialization when fetching low level datastore Entity objects from Memcache

It turns out that retrieving low level datastore entities that are stored memcache is painfully slow. Since objectify caches entities as the low level datastore Entity type, this results in poor performance when fetching many entities from memcache…
aloo
  • 5,331
  • 7
  • 55
  • 94
5
votes
2 answers

inconsistency issue with Objectify query result and Datastore viewer result?

I'm coding a sample project based on TodoMVC angularjs (http://todomvc.com/) and with a backend api with Google App Engine Cloud Endpoint and I'm having some consistency result when getting the todos liste from App Engine Datastore. Todo object are…
5
votes
1 answer

Objectify and TimerTask: No API environment is registered for this thread

I'm trying to get a TimerTask set up to remove entries from Google App Engine's dataStore periodically. So I set up a ServletContextListener with a Timer. Inside the contextInitialized, I have registered my Objectify…
1 2
3
76 77