Hello
I have 2 tables named as college and student.I want to implement one to many relationships in these two tables using Struts2 & Hibernate 3.0.
Therefore,every one record of college table may be linked to many records in student table.(i.e. one college many students).
I have created 2 model beans classes by the name college.java and student.java, one-to-many relationship between college.java and student.java is mapped using hibernate annotations.
My input
jsp captures college and multiple students data in one screen.
I am using model driven interface in struts-2 action class.
However, model driven interface is able to transfer the data to only one model class at a time.
I need to transfer data to both college.java and student.java model class.
Please let me know the solution for the above problem.