Example:
List<?> result1 = session.createQuery( "from Person e where e.id.firstName = 'Emmanuel'" ).list();