I have an entity class Person with uuid column. I have an external rest service(ExternalRestService) where I could fetch information by mentioned uuid column. I want to create projection like
interface PersonWithExternalDataProjection {
val uuid: UUID,
val externalData = externalRestService.getDataBy(uuid)
}
Tried @Value but seems it doesn't work.
Eventually found that this one works: