Take the 2-minute tour ×

The sample Objectify code shows entity fields declared with default visibility, e.g.,

public class Car
    @Id Long id;
    String vin;
    int color;
    @Transient String doNotPersist;

Does it matter if I declare the fields private, protected, or public instead?

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

Based on this example, which I found a few hours after posting my question, persisted fields can be private.

share|improve this answer
add comment

Your Answer


