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

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -