I am trying to implement Collection
findByTarget(Target t) throws FinderException, RemoteException, method using
Orion's CMP. My target is defined as follows:
public class Target implements java.io.Serializable
{
private long id;
private String for;
...
public long getId() {return
id;}
public String getFor() {return
for;}
};
How can I tell Orion in orion-ejb-jar.xml to
execute $1.getId() or $1.getFor() on the argument before using it in the
query? The "spirit" of the query I really want to be generated
is:
select * from myTable where myTable.i = (value of
$1.getId()) and myTable.b = (value of $1.getFor())
Thanks.
-AP_
|