I have same problem, but when using MemcacheService. I use MemcacheService to create user login session.
I was using objectify-4.0a4.jar with concrete entity relationship and works fine. Then I replace it to objectify-4.0b1.jar and refactoring my code to use Ref<?> instead of concrete entity relationship and now I give the same problem of David Fuelling.
Ex. (Please, this is only example, not my real code):
public class Session implements Serializable {
private static final long serialVersionUID = 1L;
private final MemcacheService cache;
public Session(MemcacheService cache) {
}
public void setCar(Car car) {
cache.put(keyCar, car); //java.io.NotSerializableException: com.googlecode.objectify.util.ResultNow
}
}
@Entity
class Car implements Serializable {
private static final long serialVersionUID 1L;
@Id Long id;
@Load Ref<Person> driver; // Person is an @Entity
public Person getDriver() { return driver.get(); }
public void setDriver(Person value) { driver = Ref.create(value); }
}