struts2 - Hibernate struts 2 contradict for using multiple List type child in entity class -


contradict using multiple list child in entity class

i using hibernate , struts 2.i trying populate entity in form.entity has 2 collection child objects.if use list struts maps list hibernate gives multibag exception @ same time

entity class  class college{   fetch lazy   list<employee> employees;   fetch lazy   list<student> students;  } 

i try fetch college details eagarly using fetch profiles employees , students. hibernate gives exception on fetching college details

in struts 2 form while populating college details use college.employees[0].name

struts maps department details in case list.

if change employees set works hibernate not struts i.e employee values not mapped


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -