[jboss-user] [JBoss Seam] examples of EntityQuery instead of entity-query
Eelco Visser
Eelco-Visser at xs4all.nl
Mon Apr 9 10:06:40 EDT 2007
The Seam manual (1.2.1.GA) shows how to use Java code instead of XML
for using the EntityHome framework class. For example, instead of
<component name="personHome" class="org.jboss.seam.framework.EntityHome">
<property name="entityClass">eg.Person</property>
</component>
one can write:
@Name("personHome")
public class PersonHome extends EntityHome<Person> {}
Now I'm wondering if there is a similar analogue to using EntityQuery:
<component name="people" class="org.jboss.seam.framework.EntityQuery">
<property name="ejbql">select p from Person p</property>
</component>
That is, how do I write this in Java. The JavaDoc documentation for
the (Entity)Query class provides no documentation at all (other than
the signatures for the classes).
Any hints would be appreciated.
-- Eelco
More information about the jboss-user
mailing list