Hello everyone,
Im having an Object "User" which gets mapped through hibernate and gets all the attributes filled.
Now i have an array with fields (the names are actually the same as the DB-column names).
Now my question:
Is it now possible to take this User Bean with data and get the list of criteria fields and create a second array with the values? The number of criterias can be 1 to a maximum of equal to the number of fields in the Bean.Any suggestions to this?
to make it a little bit cleaner:
User entity has Name, Email, Adress, Zip
Now i get an array with the fieldnames "Name","Email"
now, i read out those fields Name and Email and fill them into a second
array so that i end up with a User bean...a fields array and a field values array
|