You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@deltaspike.apache.org by Harald Wellmann <hw...@gmail.com> on 2014/02/10 16:04:18 UTC
JPA Criteria and Embeddables
Does the criteria API of DeltaSpike data support path expressions for
Embeddables?
I would like to express the equivalent of
select c from Customer c where c.address.city = ?1
where
@Entity
class Customer {
@Embedded
Address address;
}
@Embeddable
class Address {
String city;
}
Best regards,
Harald
Re: JPA Criteria and Embeddables
Posted by Harald Wellmann <hw...@gmail.com>.
My question was about the Criteria API. (The example is simplified. I do
need dynamic criteria.)
Am 10.02.2014 18:27, schrieb Bruno Leonardo Gonçalves:
> The nested properties are not woking?
>
> http://deltaspike.apache.org/data.html#nested-properties
>
>
> Regards,
> Bruno
>
>
> 2014-02-10 13:04 GMT-02:00 Harald Wellmann <hw...@gmail.com>:
>
>> Does the criteria API of DeltaSpike data support path expressions for
>> Embeddables?
>>
>> I would like to express the equivalent of
>>
>> select c from Customer c where c.address.city = ?1
>>
>> where
>>
>> @Entity
>> class Customer {
>>
>> @Embedded
>> Address address;
>> }
>>
>> @Embeddable
>> class Address {
>>
>> String city;
>>
>> }
>>
>> Best regards,
>> Harald
>>
>
Re: JPA Criteria and Embeddables
Posted by Bruno Leonardo Gonçalves <br...@gmail.com>.
The nested properties are not woking?
http://deltaspike.apache.org/data.html#nested-properties
Regards,
Bruno
2014-02-10 13:04 GMT-02:00 Harald Wellmann <hw...@gmail.com>:
> Does the criteria API of DeltaSpike data support path expressions for
> Embeddables?
>
> I would like to express the equivalent of
>
> select c from Customer c where c.address.city = ?1
>
> where
>
> @Entity
> class Customer {
>
> @Embedded
> Address address;
> }
>
> @Embeddable
> class Address {
>
> String city;
>
> }
>
> Best regards,
> Harald
>