[prev in list] [next in list] [prev in thread] [next in thread]
List: jboss-user
Subject: [JBoss-user] [JBoss Seam] - How do I reattach entities using a
From: javajedi <do-not-reply () jboss ! com>
Date: 2006-06-30 22:43:22
Message-ID: 1056618.1151707402894.JavaMail.jboss () colo-br-02 ! atl ! jboss ! com
[Download RAW message or body]
I'm using a ManagedHibernateSession with a \
SeamExtendedManagedPersistencePhaseListener. When Seam renders the view, it starts \
the 2nd transaction successfully. However, it is not attaching any of my entities to \
a Hibernate Session. This causes LazyInitializationExceptions whenever I try to \
access a lazily-initialized property on one of my entities from my view.
The workaround that I am currently using is to reattach my entities manually. \
Basically, in the first getter that is called from the view, I'm calling \
sessionFactory.getCurrentSession().update(myEntity). But from what I can tell looking \
at the Seam docs, this shouldn't be necessary.
Any suggestions as to how I might try to track down the problem?
View the original post : \
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954770#3954770
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954770
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic