[jboss-user] [JBoss Seam] - unable to lazy load objects

vlaugier do-not-reply at jboss.com
Sat Dec 1 22:29:37 EST 2007


Hello,

we have a performance problem caused by an eager load of the objects

we have put the annotations in this way :


  | @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "manager")
  | 	public List<Employee> getEmployees() {
  | 
  | ...
  | 

but we cannot make  lazy loading work

I have read some things about ejb3/hibernate limitations, contexts, and something in this blog (http://pilhuhn.blogspot.com/2006/08/how-to-outsmart-lazy-loading.html)

but I have not found them helpful for the moment

does anyone has met this behavious before ?

thanks

vincent


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109599#4109599

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109599



More information about the jboss-user mailing list