[jboss-user] [JBoss Seam] - Re: Needing help for the lazy initialize

2007-02-17 Thread Seto
lawrieg, thanks. Youre advice helps. I just use the session to implement the 
part initialize of the collection. Thank you.
Also thanks to gavin.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018234
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Needing help for the lazy initialize

2007-02-17 Thread [EMAIL PROTECTED]
There's no support for this in EJB3. Just use an ordinary query.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018228
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Needing help for the lazy initialize

2007-02-17 Thread lawrieg
Take a look at section 8.4 'Using the JPA "delegate"' and 8.5 'Using Hibernate 
filters' in the Seam reference documentation - it seems like this might be what 
you are looking for.

Hope this helps,

Lawrie

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018222
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Needing help for the lazy initialize

2007-02-17 Thread Seto
for example 

  | 
  | 
  |   #{category.name}
  |   
  |   
  | #{position.name}
  | 
  | 
  |   #{article}
  | 
  | 
  |   
  |   
  | 
  | 
  | 

Refering to the blog example, I used the #{position.recentArticles} instead. 

  | public List getRecentArticles(){
  |   return articles.sublist(0, 10);//just a example so ignore the length 
problem
  | }
  | 
But it also initilized the other articles. And it cause the performance leak. 
And I want to limit the initialization of the articles. I want it just 
initilize the recent 10 articles. How can I do that?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018207
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Needing help for the lazy initialize

2007-02-17 Thread Seto
Can someone help me? I learn from the blog use the sublist, I'm in trouble with 
rows up to 1000. It cost seconds to finish the loading.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018201
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Needing help for the lazy initialize

2007-02-17 Thread Seto
I just have a three level relationship.
Category 1...* Position 1...* Article
My home page is listing the categories with the position below and articles 
below. I want to limit the size initilize size of the articles. I'm using the 
sublist to get the recent 10 articles. But it can't limit the initilize and the 
performance is so bad.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018103
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user