Hello all,
I have a question regarding Querying By Example.
I understand that:
"Version properties, identifiers and associations are ignored. By default, null valued properties are excluded"
But how come the "" string valued properties are also excluded?
I have a user in the database, say userInDatabase, like
lastName = "lname"
firstName = "fname"
middleName = "mname"
And I want to query the database with an userExample created as
userExample.lastName = "lname"
userExample.firstName = "fname"
userExample.middleName = ""
The result I was expecting should be 0 matching rows.
However it returns the user with middleName as "mname", the result is
the same as when I use userExample2 as follows
userExample.lastName = "lname"
userExample.firstName = "fname"
userExample.middleName = null
However from the document, it did not say that the empty string valued
property will be excluded too.
Any thought?
Thanks.
|