이 콘텐츠는 선택한 언어로 제공되지 않습니다.
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
select p.name from Person p
select p.name.first from Person p
select p.name.first from Person p
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
from Person p where p.name = :name
from Person p where p.name.first = :firstName
from Person p where p.name.first = :firstName
Components can also be used in the
order by clause:
from Person p order by p.name
from Person p order by p.name
from Person p order by p.name.first
from Person p order by p.name.first
Another common use of components is detailed in the "Row Value Constrictor Syntax" section.