Are you intending to use query-by-example [1] pattern? OpenJPA supports this pattern.
If Person has 10 different fields you can crate a new "example" Person() populate two of its fields and ask OpenJPA to find all Persons that match the "example" person on these two populated fields. [1] http://en.wikipedia.org/wiki/Query_by_Example ----- Pinaki -- View this message in context: http://openjpa.208410.n2.nabble.com/Generic-setParameter-on-createNamedQuery-query-tp5421070p5432122.html Sent from the OpenJPA Users mailing list archive at Nabble.com.
