I have the following Entity. In this I want to fetch all data except phoneNumber. What will be the best solution? It would be fine if I could do it with annotation.
public class Employee {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
@Column(name = "employee_name")
private String name;
@Column(name = "gender")
private char gender;
@Column(name = "date_of_birth")
private String dob;
@Column(name = "skills")
private String[] skills;
@Column(name = "phone_number")
private String phoneNumber;
//getter setter
}