RichardHightower / krank

Automatically exported from code.google.com/p/krank
0 stars 0 forks source link

Bind Variable issue in Criteria #43

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Write a simple finder method with criteria query to Query Employee Table
2. Introduce "or" condition employeeName = "X" or employeeName = "Y"
         employees=employeeDAO.find(
                 or(
                      eq("employeeName","X"),
                      eq("employeeName","Y")) 
            );

What is the expected output? What do you see instead?

Expected output should return 2 Employee Object with X and Y.
The actual outpur returns only Y.

What version of the product are you using? On what operating system?

Windows

Please provide any additional information below.

WE forsee this a bindvariable issue where the employeeName bindvariable is 
occuring twice and the last value is taken when the query runs. As we dont 
have control on bind variable this is critical.

Original issue reported on code.google.com by mahe...@gmail.com on 16 Jun 2009 at 10:53