i am having two table
jobs and production
production table has jobid field which refers jobid of jobs table.
In hibernate how to use not in clause>
You can use HQL:
List jobs = session.createQuery( "from Job where id not in (select jobId from Production)" ).list();