Dummy question.
I create my POJO Objectify entity (for example, \"Category\") and persist it.
Then I retrieve it via a query.
I want to use it in a
The Key class in Objectify 4 has this method:
public static Key create(T pojo)
so, if you already have read the entity (called category in this example) from the datastore, you can just call
category
product.categoria = Key.create(category);