hibernate - Struts2 grid json -
how can exclude hibernate objects listed fetchtype.lazy? causes problems because org.hibernate.lazyinitializationexception. understand trying serialize object , can not because session closed. how can disable it? have many objects , not feasible make them eager nor remove them there many of them. please help.
i able use includeproperties suggested nmc, still nice not have define properties , see if jsonutil can ignore lazy loaded objects.
<result name="success" type="json"> <param name="includeproperties"> ^gridmodel\[\d+\]\.first, ^gridmodel\[\d+\]\.last, rows, page, total, record</param> </result>
Comments
Post a Comment