14.18. Components


Components can be used similarly to the simple value types that are used in HQL queries. They can appear in the select clause as follows:
select p.name from Person p
Copy to Clipboard Toggle word wrap
select p.name.first from Person p
Copy to Clipboard Toggle word wrap
where the Person's name property is a component. Components can also be used in the where clause:
from Person p where p.name = :name
Copy to Clipboard Toggle word wrap
from Person p where p.name.first = :firstName
Copy to Clipboard Toggle word wrap
Components can also be used in the order by clause:
from Person p order by p.name
Copy to Clipboard Toggle word wrap
from Person p order by p.name.first
Copy to Clipboard Toggle word wrap
Another common use of components is detailed in the "Row Value Constrictor Syntax" section.
Back to top
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2025 Red Hat