Hi I have a class called "Person.java"Person.java and it has its own variables and also it also point to some of the referenced classes. Have a look at the variables below...
public class Person extends BaseModel { private static final long serialVersionUID = 1L; private Date dateOfBirth; private String aadhaarNumber; private Set<EducationQualification> educationQualifications; private Set<EmploymentExperience> employmentExperiences; private ContactInformation contactInformation; private DriversLicense driversLicense; private PersonName personName; private Candidate candidate; private Passport passport; private Set<Award> awards; } Here I am getting the field names using Java reflection. When I use "Class.getDeclaredField()"Class.getDeclaredField() its giving all the fields (Above specified variables). But I want only two fields those are
private Date dateOfBirth; private String aadhaarNumber; So if it is a static variable I can check weather its a static or not but how can I check weather its a referenced field or not...?
Can anyone please solve my doubts.? Please I stuck over here...