[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-408?page=co...
]
tareq alhashash commented on HHH-408:
-------------------------------------
great feature thank you,
i`v already tested it and its great, but i guess there is a problem in composite keys
entities.
looking forward for its release.
Implementation of E-QBE (Enhanced-QueryByExample) (CONTRIBUTION)
----------------------------------------------------------------
Key: HHH-408
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-408
Project: Hibernate Core
Issue Type: New Feature
Components: core
Reporter: Marc Piparo
Assignee: Gavin King
Attachments: hibernate-eqbe.zip, hibernate-eqbe.zip, overview-summary.html
Adds E-QBE (Enhanced-QueryByExample) functionality that dynamically builds criteria
objects based on an example object graph, by traversing the entire object graph, building
query criteria for the object's properties, as well as, properties of associated
objects.
Also adds the ability to apply an Evaluation group of "Evaluators" to
properties using object dot notation to provide "where" restrictions on property
values.
Example usage:
Given a typical Person and Address class relationship...
>> Person person = new Person();
>> person.setName("Marc");
>> Address address = new Address();
>> address.setCity("Orlando%");
>> person.setAddress(address);
>>
>> Evaluation eval = new Evaluation();
>> eval.addEvaluator("address.city", Evaluator.LIKE);
>> // query for persons with name="Marc" that live in city starting
>> // with "Orlando".
>> List results = session.createEQBECriteria(people, eval).list()
also....to apply "OR" condition on property value:
>> a.setCity("Orlando||New York");
package: org.hibernate.eqbe
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira