How do I use caching for queries with Seam?
Do I have to annotate Action which extends EntityQuery?
Or do I need to extend from HibernateEntityQuery instead and override
get getCacheable?
I use JPA Seam/WebLogic/EhCache/Hibernate.
Can EhCache be used under JPA with hibernate on WebLogic?
Are there any documents which describe how to cache queries with Seam?

Thanks a lot

PS: My action class


  | public class EmailList extends EntityQuery {
  | 
  |     private static final String[] RESTRICTIONS = {};
  | 
  |     private Email  email  = new Email();
  | 
  |     @Override
  |     public String getEjbql() {
  |             return "select email from Email email ";
  |     }
  | 
  |     @Override
  |     public Integer getMaxResults() {
  |             return 25;
  |     }
  | 
  |     public Email  getEmail() {
  |             return email ;
  |     }
  | 
  |     @Override
  |     public List<String> getRestrictions() {
  |             return Arrays.asList(RESTRICTIONS);
  |     }
  | 
  | }
  | 





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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034228
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to