org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: model.Category.subcategoryCollection, no session or session was closed at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:358) at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:350) at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:343) at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:86) at org.hibernate.collection.PersistentBag.toString(PersistentBag.java:483) at org.netbeans.modules.hibernate.hqleditor.ui.HQLEditorTopComponent.createTableData(HQLEditorTopComponent.java:544) at org.netbeans.modules.hibernate.hqleditor.ui.HQLEditorTopComponent.setResult(HQLEditorTopComponent.java:488) at org.netbeans.modules.hibernate.hqleditor.HQLEditorController$1.run(HQLEditorController.java:131)