I have some titles in a title table and i want to generate text boxes each of which represent title and want to store the value of that text box in title column. I want to implement this using Java spring and hibernate.

What i'm thinking of is creating a Hashmap which stores title as key and value in textbox as value. But i don't know how to fill that hash map from database, create dynamic control from it and store those the values user enter into the database corresponding to title.