Код: Выделить всё
@Service
public class Class2ServiceImpl extends Class1ServiceImpl
Код: Выделить всё
@Override
public Class2ApplicationInformation getClass2ApplicationInformation(Offer offer, BigDecimal outstandingBalance) throws ServiceAdapterException {
Class1ApplicationInformation class1ApplicationInformation = (Class2ApplicationInformation) super.getClass1ApplicationInformation(offer, outstandingBalance);
Class2ApplicationInformation applicationInformation = new Class2ApplicationInformation();
Чтобы сделать это, я должен повторно инициализировать каждое значение, например
Код: Выделить всё
applicationInformation.setTotalProtect(totalProtect);
applicationInformation.setCommodities(class1ApplicationInformation.getCommodities());
return applicationInformation;
Чтобы вернуть значения из обоих классов impl
Подробнее здесь: https://stackoverflow.com/questions/790 ... lass-value