You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-dev@db.apache.org by "Andreas Veithen (JIRA)" <ji...@apache.org> on 2013/01/05 13:16:12 UTC

[jira] [Moved] (JDO-718) Filter in one to many relationship

     [ https://issues.apache.org/jira/browse/JDO-718?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Veithen moved ABDERA-312 to JDO-718:
--------------------------------------------

        Key: JDO-718  (was: ABDERA-312)
    Project: JDO  (was: Abdera)
    
> Filter in one to many relationship
> ----------------------------------
>
>                 Key: JDO-718
>                 URL: https://issues.apache.org/jira/browse/JDO-718
>             Project: JDO
>          Issue Type: Improvement
>            Reporter: Tan Nguyen Cong
>
> Hi Guys, I can't filter in one to many relationship in this case.Could you please give your comments??
> @PersistenceCapable
> Category {
>          @PrimaryKey
> 	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
> 	private Long categoryid;
>  
>       @Persistent(mappedBy = "category", defaultFetchGroup = "true")
> 	@Element(dependent = "true")
> 	private List<CategoryDescription> categoryDescription;
> }
> @PersistenceCapable
> public class CategoryDescription {
>         @Persistent
> 	private Category category;
> 	@Persistent
> 	private Long languageid;
> }
> I try to filter like "Select from Category.class Where categoryDescription.cotains(i) && i.languageid == 1 VARIABLES CategoryDescription.class i"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira