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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user