db-jdo-dev mailing list archives

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

     [ 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

Mime
View raw message