I currently don't have a test environment for this question. So, I ask it instead. I have a component Address in an entity Account.
Code:
@Embeddable
public class Address implements java.io.Serializable {
...
}
@Entity
@Table(name = "account")
public class Account implements java.io.Serializable {
...
private Address address;
...
}
Can I retrieve an address with a HQL something like the following
Code:
select account.address from Account account where ...
instead of
Code:
from Account account where ...
and retrieve the Address from the result?