If you have such data class:
@JvmRecord
data class Service(
val serviceId: Long,
}
and such java record:
record Service2(
long serviceId
) {}
and use them in mapping:
@Mapper
interface ServiceMapper {
Service2 fromService(Service service);
}
Then plugin will false warn about absent target mapping, but MapStruct itself works well.