RIA Advisory interview question

How can you implement named queries using Hibernate ?