I want to use auto value with objectify model entity. Objectify requires @Id annotation with a field value however in Google AutoValue all fields need to be converted to abstract methods, so I can't apply @Id to a abstract method. What is your suggestions?
@Entity
@Cache
@AutoValue
public abstract class AccountDetail {
// Objectify needs this
@Id
private long id;
// auto value needs this
abstract long id();
}