Sorry I don't think I was clear. From what I understand the table is structured generically, so Essentially there are two columns in the table. One for Columns Names, and the other is for values associated with it. So it would look something like this:
Code:
Column1:Column2
FirstName:Fname1
FirstName:Fname2
FirstName:Fname3
LastName:Lname1
LastName:Lname2
.
.
.
What this allows us to do is add a new column, w/o changing the table. When I try to use both criterias, as I explained before, to me it seems like Hibernate is trying to match a record which has both First Name and Last Name, yet all records can have only First Name or Last Name and not both.
But I need to get the record, which contains a First Name in the Fname column and Last Name in the Lname column, so they belong to the same person.
And I have tried using "and" operators, and I get nothing back. When I use "or" operators, it brings back all matches for First Name, and then all matches for Last Name, but it doesn't look at the results to see if they are associated with each other. Essentially doing two different calls. Its like it doesn't know how First Names and Last Names go together.
By columns I do mean properties. I am sorry about that, I am still learning Hibernate lingo.