deltaspike-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harald Wellmann <hwellmann...@gmail.com>
Subject Re: JPA Criteria and Embeddables
Date Mon, 10 Feb 2014 22:31:00 GMT
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 <hwellmann.de@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
>>
>


Mime
View raw message