[jboss-user] [JBoss Seam] - extending EntityQuery by override or by constructor ?
codelion
do-not-reply at jboss.com
Tue Jan 16 15:39:08 EST 2007
I've seen both kind of code:
public class PotatoQuery extends EntityQuery {
|
| public PotatoQuery() {
| setEjbql("SELECT potato FROM Potato potato");
| }
as well as
@Override
| public String getEjbql() {
| return "SELECT potato FROM Potato potato";
| }
Are both equally valid? Fyi, override example is from recent seam-gen.
Now it seems e.g. for setOrder one would want to use the constructor, because it may change.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002427#4002427
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002427
More information about the jboss-user
mailing list