From: David W. <dav...@do...> - 2002-05-20 23:24:24
|
oops> instead of having to oops> be duplicated in custom query sections of jboss.xml and, say, oops> weblogic-ejb-jar.xml. Sorry, I meant to say jaws.xml (or jbosscmp-jdbc.xml) and=20 weblogic-cmp-rdbms-jar.xml, respectively... -- David Ward wrote: > Yes, it can also be used to override the sql that would have=20 > automatically been created for you by jboss - even findAll(). I've don= e=20 > that quite a few times for jboss 2.4.x. >=20 > Of course, if you're using EJB 2.0 instead of 1.1 (implying=20 > jboss3.0rc2), I suggest you just use the @ejb:finder=20 > signature=3D"Collection findXXX()" query=3D"SELECT OBJECT(a) FROM ..."=20 > style, now that EJBQL is available. (Reason is that now your custom=20 > queries are in the app-server-agnostic ejb-jar.xml instead of having to= =20 > be duplicated in custom query sections of jboss.xml and, say,=20 > weblogic-ejb-jar.xml.) >=20 > Hope this helps, > David >=20 > --=20 >=20 > Michael Delamere wrote: >=20 >> Hi, >> >> I=B4m not quite sure how to make use of the tag: >> >> @jboss:finder-query name=3D"findFoo" query=3D"foo =3D {1}" order=3D"fo= o,bar" >> >> I understand what the above line does. What I don=B4t understand is=20 >> where to >> put it. Is this only for custom finder methods or can it also be used= =20 >> for >> the findAll() method, i.e. so that it does a "select * from myTable=20 >> order by >> bla"? >> >> Any help would be really appreciated. >> >> Regards, >> >> Michael >> >> >> _______________________________________________________________ >> >> Don't miss the 2002 Sprint PCS Application Developer's Conference >> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm >> >> _______________________________________________ >> Xdoclet-user mailing list >> Xdo...@li... >> https://lists.sourceforge.net/lists/listinfo/xdoclet-user >=20 >=20 >=20 >=20 --=20 --------------------- David Ward dav...@do... http://www.dotech.com |