Entity Class
@Entity
@Table("abc")
public class Portfolio {
@Id
@Column(name="account_number")
@JsonProperty("account_number")
@ApiModelProperty(value = "account_number")
private String accountNumber;
@Column(name="query_email")
private String query_email;
}
HQL Query : From Portfolio where query_email='abc@gamil.com'
above query selecting query_email, i don't need that. i want to ignore the query_email on select. if i use @Transient its not allowing me to query with query_email
is there any other solution for this scenario ?