Questo contenuto non è disponibile nella lingua selezionata.

14.17. 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 in Section 14.18, “Row value constructor syntax”.
Torna in cima
Red Hat logoGithubredditYoutubeTwitter

Formazione

Prova, acquista e vendi

Community

Informazioni sulla documentazione di Red Hat

Aiutiamo gli utenti Red Hat a innovarsi e raggiungere i propri obiettivi con i nostri prodotti e servizi grazie a contenuti di cui possono fidarsi. Esplora i nostri ultimi aggiornamenti.

Rendiamo l’open source più inclusivo

Red Hat si impegna a sostituire il linguaggio problematico nel codice, nella documentazione e nelle proprietà web. Per maggiori dettagli, visita il Blog di Red Hat.

Informazioni su Red Hat

Forniamo soluzioni consolidate che rendono più semplice per le aziende lavorare su piattaforme e ambienti diversi, dal datacenter centrale all'edge della rete.

Theme

© 2025 Red Hat