jeudi 22 mars 2018

Java reflection class.getFields() gave less fields, why? [duplicate]

I have a class which has about a hundred private fields (mostly Strings) and trying to get them in array through a reflection: Field [] fields = MyClass.class.getFields(); that array has only two fields Why? Whare are another 98 ones?? This class annotated as: @Entity(name = "car") @Table(name = "cars") and some fields has a custom annotations.





Aucun commentaire:

Enregistrer un commentaire