I am creating a finder which takes a type of Target object to find.  So, my
home interface looks like this:

Collection findByTarget(Target o) ....

The SQL I want to ultimately generate should look something like this:

select * from myTable where id = ?1.getId();

Please note, that what's stored in the table is something called id, but I
need to extract that id from the Target by using the Target.getId() API
before using it in the SQL.

Is there a way to do this, or are CMP finders always doomed to accept only
primitive types?

Thanks.
-AP_


Reply via email to