from user u, company c where c.name = u.name

how can do the same thing using DetachedCriteria, I did it using HQL. but thats not what I wanted ?

thnx in advance