// Parent Model!! public ValueObject getNewEmptyModel(ValueObject ttv) { Tariff2SeaportValue val = new Tariff2SeaportValue(); val.getClientValueObjectProxy().setNew(); if (ttv != null && ((TruckTariffValue) ttv).getId() != null) val.setTruckTariffId(((TruckTariffValue) ttv).getId().longValue()); return val; }
/* * (non-Javadoc) * * @see net.metaship.swing.generic.EditableContext#addVODirectly(net.metaship.generic.ValueObject, * net.metaship.generic.ValueObject) */ public boolean addVODirectly(ValueObject vo, ValueObject parent) { ((Tariff2SeaportValue) vo).setTruckTariffId(((TruckTariffValue) parent).getId().longValue()); this.addValueObject(vo); return true; }