db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Jefferson (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (JDO-718) Filter in one to many relationship
Date Sat, 05 Jan 2013 13:24:12 GMT

     [ 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

Mime
View raw message