[google-appengine] I am new to google datastore. Looking at mapping between entities (Java)

2019-04-04 Thread tonycavanagh1929
Working through the examples, if I have say an entity person that has an entity address. I could create a EmbeddedEntity and add that to a Entity as a one to one mapping, I could even create a list make it a one to many. is that the only way, if I want separate storage, for say an object, with a

[google-appengine] Mapping one to many, and many to many in DataStore for Java

2019-05-17 Thread tonycavanagh1929
Hi. The only documentation, I have found on this subject is for Python only. What I have done, where I have a one to many mapping Type to Fields. I have created a List of Field Ids, which I store in my Type Entity and then created, a Field Entities. When I extract a Type, it puls out the lis

[google-appengine] DataStore Key handling

2019-05-17 Thread tonycavanagh1929
Every Time I wish to carry out any CRUD operation on a datastore, I have to create a Entity first to get the key. Entity entity = new Entity("Project", key.getProjectId()); entity = datastoreService.get(entity.getKey()); Is this correct. -- You received this message because you are subscribed

[google-appengine] DataStore wont allow me to save byte[]

2019-05-17 Thread tonycavanagh1929
I thought DataStore Allows you to save byte [], but I am getting an error [B is not a supported property type.]. I thought. datastore is supposed to autoconfigure it into blobvalue. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To u

[google-appengine] Re: DataStore Key handling

2019-05-19 Thread tonycavanagh1929
Thank you for replying I understand what the key is, My question was that I have to recreate it every time I want to access the DataSotore. I guess I have to, On Friday, 17 May 2019 08:53:12 UTC+1, tonycavanagh1929 wrote: > > Every Time I wish to carry out any CRUD operation on a datast

[google-appengine] Question on LeaseOptions

2019-05-19 Thread tonycavanagh1929
I am looking at tasks, I am trying to understand what is the purpose of LeaseOptions In the docs it says so Once tasks are in a pull queue, a worker can lease them. After the tasks are processed the worker must delete them. So does lease just mean get a task of a queue and then run that task

[google-appengine] Re: Question on LeaseOptions

2019-05-20 Thread tonycavanagh1929
Thank you, I just wanted to check that my undestanding was correct. Cheers Tony On Sunday, 19 May 2019 20:12:03 UTC+1, tonycavanagh1929 wrote: > > I am looking at tasks, I am trying to understand what is the purpose > of LeaseOptions > > In the docs it says so > > Once task

[google-appengine] Re: DataStore Key handling

2019-05-20 Thread tonycavanagh1929
. I would have to use the ID to generate the key. Are you saying store the id and the Key in say memcache on the microservice. Thanks Tony On Friday, 17 May 2019 08:53:12 UTC+1, tonycavanagh1929 wrote: > > Every Time I wish to carry out any CRUD operation on a datastore, I have > to

[google-appengine] Re: DataStore wont allow me to save byte[]

2019-05-22 Thread tonycavanagh1929
Thank you for reply, I found to save byte [] I had to wrap it as a Blob. On Friday, 17 May 2019 14:50:31 UTC+1, tonycavanagh1929 wrote: > > > I thought DataStore Allows you to save byte [], but I am getting an error > > [B is not a supported property type.]. I thought. datast