class Depot extends AbstractPersistable {

    protected Location location;

    public Depot() {
    }

    public Depot(long id, Location location) {
        super(id);
        this.location = location;
    }

    public Location getLocation() {
        return location;
    }

    public void setLocation(Location location) {
        this.location = location;
    }

    @Override
    public String toString() {<FILL_FUNCTION_BODY>}

}

        if (location.getName() == null) {
            return super.toString();
        }
        return location.getName();
    
<methods>public long getId() ,public java.lang.String toString() <variables>protected java.lang.Long id