You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to use interceptor declaration inside abstract mapper. But in generated class this method has called through variable customMapper(MyMapperName) that not declared. For me expected behavior is calling interceptor methods through this reference if there isn't another customMapper.
Below is example of my use case. May be I'm doing something wrong...
@Mapper(withIgnoreMissing = IgnoreMissing.ALL)
public abstract class AddressMapper {
public abstract AddressDTO convert(Address address);
public void interceptor(Address addressDTO, AddressDTO address) {
System.out.println("bean to dto");
}
}
public final class AddressMapperSelmaGeneratedClass extends AddressMapper {
/**
* Mapping method overridden by Selma
*/
@Override
public final com.tcs.mortgage.rest.dto.questionary.AddressDTO convert(com.tcs.mortgage.model.mortgage.questionary.Address in) {
com.tcs.mortgage.rest.dto.questionary.AddressDTO out = null;
if (in != null) {
out = new com.tcs.mortgage.rest.dto.questionary.AddressDTO();
//... some setters
out.setStreet(in.getStreet());
}
customMapperAddressMapper.interceptor(in,out); // <-- customMapperAddressMapper variable that is not declared. Compile error
return out;
}
/**
* Single constructor
*/
public AddressMapperSelmaGeneratedClass() {
}
}
The text was updated successfully, but these errors were encountered:
I try to use interceptor declaration inside abstract mapper. But in generated class this method has called through variable customMapper(MyMapperName) that not declared. For me expected behavior is calling interceptor methods through this reference if there isn't another customMapper.
Below is example of my use case. May be I'm doing something wrong...
The text was updated successfully, but these errors were encountered: