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 "Andy Jefferson (JIRA)" <ji...@apache.org> on 2013/01/05 14:24:12 UTC

[jira] [Closed] (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 ]

Andy Jefferson closed JDO-718.
------------------------------

    Resolution: Invalid

"Apache JDO" is a project defining the JDO API, not implementing that API. Consequently you should ask your questions of the implementation you are using, in this case "Google AppEngine". They provide support via StackOverflow  http://stackoverflow.com/
                
> 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