[jboss-user] [JBoss Seam] - Query caching with Seam
mgrouch
do-not-reply at jboss.com
Tue Apr 3 13:50:42 EDT 2007
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
More information about the jboss-user
mailing list