dimanche 5 avril 2015

Spring MVC-Hibernate Association Advice

I'm fairly newbie to spring. Here is my problem..


I've two tables, Category & Notes. Both the tables are associated through an association table where the foreign keys of the two tables are linked. I've done mapping on the Hibernate Entity table as well - ManyToMany as Set. My problem is I'm using the same bean as Form Bean. And I dont want to send the complete object graph to Form, rather only main form fields.


If I use Lazy, then I'm getting no session object while trying to print on JSP page using JSTL. Is there anyway I can overcome the situation by not calling the lazy mapped sets on jstl? I'm not explicitly calling, the call is going implicitly when I call like below:



<c:forEach varStatus="myIndex" var="category" items="${categories}">


Thanks for your help..


Aucun commentaire:

Enregistrer un commentaire