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

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

kernel - How to create a "Block device" in Windows -