Is it possble to write query at JPA entity property level?
Basically I want to add a property in an entity which is not an actual column and value should computed with query.
Something like:
@Entity
@Table(schema = "quote", name = "QUOTE_SCENARIO")
public class QuoteScenario {
@Query(Select max(Lead_Time) from differentEntity)
private Integer leadTime;
}