I want to fetch data from database for selected queries by using criteria api. 

**For example:**

```
select firstname,empid from emp where empid=10 && 
    empname='bhanu' || salary=25000;

```

How do I do this?