reset password
Author Message
abhishek_sharma
Posts: 79
Posted 13:32 Nov 06, 2012 |

Can anyone please tell me how can I annote where clause. Here is one scenario

Suppose I have two Model classes 1)Image and 2)Album

ImageModel have 

...

boolean display;

 

AlbumModel have 

..... 

Set<Image> images;

 

I only want to getImages where display is true

 

cysun
Posts: 2935
Posted 14:24 Nov 06, 2012 |

I think you have to use a query for that.