hello,
i try to use JBoss dynamic query, with xdoclet,
the deployment is ok, but the result is empty,
no exception generated.
your ideas are welcome, i'm lost,
i really don't know what to try next.
thanks, paul.
1. in Employee.java class comment :
-------------
* @ejb.select signature="java.util.Collection
ejbSelectGeneric(java.lang.String query,
java.lang.Object[] params)"
* result-type-mapping="Local"
* method-intf="LocalHome"
* query="select object(c) from Employee c"
*
* @jboss.query dynamic="true"
* signature="java.util.Collection
ejbSelectGeneric(java.lang.String query,
java.lang.Object[] params)"
-------------
2. in Employee.java methods :
-------------
/**
* @ejb.home-method view-type="local"
*/
public Collection ejbHomeDynamicQuery(
String query, Object[] params)
throws FinderException {
return ejbSelectGeneric(query, params);
}
/**
* @jboss.dynamic-ql
*/
public abstract Collection ejbSelectGeneric(
String query, Object[] params)
throws FinderException;
-------------
3. in facade :
-------------
Collection employees = employeeHome.dynamicQuery(ql,arguments);
-------------
the testing QL is :
select Object(o) from Employee o where o.firstName like '%?1%'
the arguments is "Object[]", size 1, arguments[0] = "Paul"
because i'd like the resulting query to be :
select Object(o) from Employee o where o.firstName like '%Paul%'
if i remove the jboss.dynamic-ql tag i get results from the
"select object(c) from Employee c" query.
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user