Извлеките записи, столбцы которых являются строками, используя критерии гибернации
I have a table with columns as rows. Now I want to apply restriction on multiple rows with "and" condition.how can we do this using hibernate criteria? Example :Employee table Pk ColumnName. Value 1. Empid. 10 1 EmpName. Sachin 1. Empsalary. 10,000 2 Empid. 20 2 EmpName. Dhoni 2. Empsalary. 8000 So now i want to fetch pk's which have EmpName as sachin and empsal as 10,000 So it should return pk as 1.
Что я уже пробовал:
I have a table with columns as rows. Now I want to apply restriction on multiple rows with "and" condition.how can we do this using hibernate criteria? Example :Employee table Pk ColumnName. Value 1. Empid. 10 1 EmpName. Sachin 1. Empsalary. 10,000 2 Empid. 20 2 EmpName. Dhoni 2. Empsalary. 8000 So now i want to fetch pk's which have EmpName as sachin and empsal as 10,000 So it should return pk as 1.
Wendelius
Вместо того чтобы публиковать новый вопрос, пожалуйста, используйте ссылку "улучшить вопрос" под вашим вопросом.