2. public class Ride implements PropertyBusinessObject {
public final LongProperty<Ride> userId = new LongProperty<>("userId");
public final Property<String, Ride> name = new Property<>("name");
public final Property<String, Ride> from = new Property<>("from");
public final Property<String, Ride> destination = new Property<>("destination");
private final PropertyIndex idx = new PropertyIndex(this, "Ride",
userId, name, from, destination);
@Override
public PropertyIndex getPropertyIndex() {
return idx;
}
}
Ride (Client Side)