[JBoss-user] [JBoss Seam] - Re: updating the view with em.refresh()

2006-05-02 Thread Andy.2003
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

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3940644#3940644

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3940644


---
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=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: updating the view with em.refresh()

2006-05-02 Thread [EMAIL PROTECTED]
This kind of discussion should be moved to the Hibernate or JBoss EJB3 forums, 
its not Seam specific.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3940737#3940737

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3940737


---
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=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user