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
Post a Comment