GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Datastore examples look outdated · Issue #106 · GoogleCloudPlatform/java-docs-samples

Datastore examples look outdated #106

New issue
Copy link
New issue
Copy link
Closed
Closed
Datastore examples look outdated#106
Copy link
Labels
🚨This issue needs some love.triage meI really want to be triaged.

Description

@ibalashov
ibalashov
opened on Mar 14, 2016
Issue body actions

E.g. there is no such element as PropertyFilter.hasAncestor in
"com.google.apis" % "google-api-services-datastore-protobuf" % "v1beta2-rev1-4.0.0"

And it is not quite obvious from the API how to make ancestor queries.

Activity

  1. ajkannan commented on Mar 15, 2016

    @ajkannan
    ajkannan
    on Mar 15, 2016
    Contributor
    More actions

    Hi @ibalashov, thanks for creating this issue.

    Are you referring to the Datastore examples listed in java-docs-samples/datastore/, mirrored here in the cloud.google.com/datastore docs? If yes, those samples actually use gcloud-java's Datastore client. gcloud-java is a layer on top of the v1beta2 dependency that you listed above which intends to make some of the syntax simpler and more concise.

    If you follow the instructions here to get the gcloud-java dependency and import the necessary classes, the snippet code that I linked above should work for you. If you'd rather not go that route and continue to use v1beta2-rev1-4.0.0 dependency, let me know and I can paste an example of an ancestor query using that library.

    I do think we can make this distinction between the two client libraries clearer on the cloud.google.com/datastore/docs page as well as in the README in java-docs-samples/datastore.

  2. ibalashov commented on Mar 15, 2016

    @ibalashov
    ibalashov
    on Mar 15, 2016
    Author
    More actions

    @ajkannan Thanks for the detailed response. I referred to Concepts.java, which is linked from Queries.

    Thanks for the suggestion, I will try to use gcloud-java's Datastore client.

  3. tswast
    closed this as completedon Apr 22, 2016
  4. yoshi-automation
    added
    triage meI really want to be triaged.
    🚨This issue needs some love.
    on Apr 6, 2020
  5. olivi-eh
    added a commit that references this issue on Nov 11, 2022

    chore(deps): update dependency com.google.cloud:libraries-bom to v8.1…

    ca49327
  6. Shabirmean
    added a commit that references this issue on Nov 11, 2022

    samples: move generated samples to generated directory (#106)

    962325b
  7. Sita04
    added 2 commits that reference this issue on Nov 11, 2022

    chore(deps): update dependency com.google.cloud:libraries-bom to v4.4…

    6a706b1

    migrate code from googleapis/java-webrisk (#7415)

    2e70d3a
  8. anguillanneuf
    added 2 commits that reference this issue on Nov 15, 2022

    chore(deps): update dependency com.google.cloud:libraries-bom to v4.3…

    efa4c49

    migrate code from googleapis/java-video-intelligence (#7425)

    13912b8
  9. Sita04
    added a commit that references this issue on Feb 7, 2023

    chore(deps): update dependency com.google.cloud:libraries-bom to v4.3…

    c353d38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🚨This issue needs some love.triage meI really want to be triaged.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.