The JPA Query by Example framework is used by projects generated by Celerio.
To get an example of what this lib can do for you, you may generate (in a few minutes) a projet with Celerio...
The JPA Query By Example Framework is released under version 2.0 of the Apache License.