Hello again, about the topic
http://forum.hibernate.org/viewtopic.php?t=946224, when I get an OrdemServico object and send the List<DirecionamentoProducao> to a TableModel for show these objects in a JTable, I'm receiving the exception:
Code:
Exception in thread "AWT-EventQueue-0" org.hibernate.HibernateException: collection was evicted
at org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:40)
at org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:1437)
at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:219)
at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:81)
at org.hibernate.collection.PersistentBag.get(PersistentBag.java:392)
at br.com.feedbackcard.piloto.visao.MDIPrincipal.editarOS(MDIPrincipal.java:2523)
at br.com.feedbackcard.piloto.visao.MDIPrincipal.btnEditarOSActionPerformed(MDIPrincipal.java:2041)
at br.com.feedbackcard.piloto.visao.MDIPrincipal.access$3500(MDIPrincipal.java:46)
at br.com.feedbackcard.piloto.visao.MDIPrincipal$36.actionPerformed(MDIPrincipal.java:1876)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3093)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Anybody can help me?
[]s
Ary Junior