java - Is there a helper to know whether a property has been loaded by Hibernate? -


I need an assistant to know how to avoid an asset LazyInitializationException Whether or not it has been loaded in the form. Is it possible?

@ Entity Public Classroom Parents {@OneToMany Private Listings & lt; Child & gt; ChildList; } @ Entity Public Class Child {} Select "Peach P. Builder List" to select a different PIN from "Parent P; // Answer goes here // I want to save from LazyInitializationException SomeHelper.isLoaded (p.getChildList ());

There are actually two methods.

Whether a lazy property has been started to find out, you can use the method as a parameter for your organization example and property name.

To know if the lazy archive (or the organization) has been started (like in your example) you call the parameter (example) as a parameter with the example can do.


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -