0
votes

I have a web application where the entities are created at runtime. e.g. for each company registered in the application, I am creating an entity in Google datastore. The entity names look like ABC_PVT_LTD, XYZ_PVT_LTD. This means we don't have a corresponding Java class with @Entity annotation. I only know the name of the entity.

How do I retrieve records from these entities using Objectify by just knowing the name of the entity?

1

1 Answers

0
votes

Why do you want to use Objectify? Objectify is a tool for mapping between the datastore and Java objects. If you just want to store arbitrary entities in the datastore, use the Java low-level API.