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