My entity:
class Voucher {
Order order;
Country country;
}
My DTO:
class VoucherDTO {
Long orderId;
String countryCode;
}
The problem is that you cannot inject the repository into the converter - this is wrong. Then what to do with this id and code?
The converter class implements the org.springframework.core.convert.converter.Converter<S, T>
interface.
Aucun commentaire:
Enregistrer un commentaire