This content has been marked as final.
Show 2 replies
-
1. Re: updating the view with em.refresh()
andy.2003 May 2, 2006 9:21 AM (in response to kh2ouija)Hi as far as I know the em.refresh(Entity) method is to refresh an existing Entity. I use it to load lazy data of entities stored in the session. I store the User-Entity in the session and to get the roles of the user i have to call:
em.refresh(lUser); lUser.getRoles();
If you delete an Entity, you should call the em.find() method (I'm not quite shure, if it is the best way)
I'm also intrested in a best practice.
- Andreas -
2. Re: updating the view with em.refresh()
gavin.king May 2, 2006 12:41 PM (in response to kh2ouija)This kind of discussion should be moved to the Hibernate or JBoss EJB3 forums, its not Seam specific.