Hy guys,
I am new to hibernate but i cant get pass this problem.. glad if you could help me: I have a small table with 2 fields, an identifier and a string. I have a class called "Privilegii", made the mapping accordingly...
The problem: Even though i have in the mysql table the values: 1880214295591 | STUDENT 1880214295591 | PROFESOR 1880214295591 | DOG
Once i use this: List priv = session.createSQLQuery("SELECT * FROM PRIVILEGII WHERE CNP="+jTextField2.getText()).addEntity(Privilegii.class).list();
I get the right size ( 3.. or whatever) but all the values are the same.. meaning the arrayList returns 188021429591 and STUDENT no matter the position in the array.
Please help :D
|