reflection - String mapping to Java class fields -


do have idea of best practice or how can implement dynamical mechanism map string values java classes fields on runtime. this:

iquote_id - should mapped current quote class - getid() method

customer_name - should mapped current customer class - getname() method

i have tried use reflection i'm not sure if solution since have fields coming direct classes, other superclasses , lot of if's me solve it..and want other elegant way if exists.

how can build such mechanism? hint appreciated.thanks.


Comments

Popular posts from this blog

javascript - How to name a jQuery function to make a browser's back button work? -

python - Django-easy-pdf: xhtml2pdf reporting reportlab 2.2+ is required, but 3.0 installed -

collision detection - C++ library for mesh to mesh intersection: what is available? -