New Entity being added every time i Perform a ancestor load query?
<p>So every time i perform the query api below instead of listing all the expenses created by the user it creates a new one?</p>

<pre><code>@ApiMethod(
        name = "getMyExpenses",
        path = "getMyExpenses",
        httpMethod = ApiMethod.HttpMethod.POST
)
public List&lt;Expense&gt; getMyExpenses(final User user) throws UnauthorizedException {
    if (user == null) {
        throw new UnauthorizedException("You need to authorisation");
    }
    String userId = user.getUserId();
    Key&lt;Person&gt; personKey = Key.create(Person.class, userId);
    return ofy().load().type(Expense.class).ancestor(personKey).list();
}
</code></pre>

<p>Im not sure why this is happening. Any help is appreciated.</p>

<p>Also the problem may be with how i tried to defined the parent relationship?  here is my Expense model class.</p>

<pre><code>@Entity
public class Expense {
    @Id Long ExpenseId;
    String name;
    @Parent
    Ref&lt;Person&gt; ExpenseCreator;
    int amount;

    private  Expense() {}
    public Expense(Long expenseId, String name, int amount) {
        ExpenseId = expenseId;
        this.name = name;
        this.amount = amount;
    }

    public Long getExpenseId() {
        return ExpenseId;
    }

    public String getName() {
        return name;
    }



    public int getAmount() {
        return amount;
    }


}
</code></pre>