I have a class called User which is having List of Account class objects like this
public class User{
private List<Account> accounts = new ArrayList<Account>();
}
The Account object is having one transient field which i want to find and do some thing with that
public class Account{
private transient openDateInOrgDateFormat;
}
This field i want to find using reflection and then check whether its transient then do something. Through reflection how to find field of type collection and then iterate that and to find if field inside the object which is in the list is transient or not.
Aucun commentaire:
Enregistrer un commentaire